Guest User

Untitled

a guest
Jul 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Recieve
  2. unsigned char cRecv[8192];
  3. int iRecieve;
  4.  
  5. while(true)
  6. {
  7. iRecieve = recv(sConnect, cRecv, sizeof(cRecv), 0);
  8. for(int i = 0; i < iRecieve; i++)
  9. {
  10. printf("%.2X", cRecv[i]);
  11. }
  12. printf("\n\n");
  13. }
  14.  
  15. if( iRecieve == SOCKET_ERROR )
  16. {
  17. cout << "Recieve Fail" << endl;
  18. }
  19. else {
  20. cout << "\n" << cRecv << endl;
  21. }
Add Comment
Please, Sign In to add comment