Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int send_packet(socket_t* pS,void* pBuf,int uLen)
- {
- int iLen = -1;
- if((iLen = send(pS->s,(const char*)pBuf,uLen,0)) < 1)
- {
- MessageBoxW(NULL,L"Ошибка отправки пакета!",
- szCritErr,MB_ICONERROR);
- closesocket(pS->s);
- ExitThread(1);
- }
- return iLen;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement