Advertisement
Guest User

Untitled

a guest
Feb 15th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int send_packet(socket_t* pS,void* pBuf,int uLen)
  2. {
  3.     int iLen = -1;
  4.     if((iLen = send(pS->s,(const char*)pBuf,uLen,0)) < 1)
  5.     {
  6.         MessageBoxW(NULL,L"Ошибка отправки пакета!",
  7.             szCritErr,MB_ICONERROR);
  8.         closesocket(pS->s);
  9.         ExitThread(1);
  10.     }
  11.     return iLen;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement