- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
DWORD WINAPI SexToClient(LPVOID client_socket) // Поток для клиента
{
SOCKET my_sock;
my_sock=((SOCKET *) client_socket)[0];
char buffer[1024] = {0};
int ral;
while(1){
ral =recv (my_sock,&buffer[0],sizeof(buffer), 0);
if(ral == SOCKET_ERROR)
{std::cout << "хуй" << "\n";}
else{
std::cout << buffer << "\n";
}
}
closesocket(my_sock);
return 0;
}
Lure Of Chaos 27.08.2011 23:12 # +7
Kirinyale 29.08.2011 11:36 # +3
Lure Of Chaos 29.08.2011 11:39 # +1
Kirinyale 29.08.2011 11:42 # +1
Lure Of Chaos 29.08.2011 11:43 # +1
SmackMyBitchUp 29.08.2011 13:36 # +1
Lure Of Chaos 27.08.2011 23:18 # +3
CPPGovno 27.08.2011 23:57 # 0
absolut 28.08.2011 01:39 # +7
Govnoeb 29.08.2011 11:07 # +1
roman-kashitsyn 29.08.2011 11:44 # 0
guest8 09.04.2019 11:23 # −999