Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Recieve
- unsigned char cRecv[8192];
- int iRecieve;
- while(true)
- {
- iRecieve = recv(sConnect, cRecv, sizeof(cRecv), 0);
- for(int i = 0; i < iRecieve; i++)
- {
- printf("%.2X", cRecv[i]);
- }
- printf("\n\n");
- }
- if( iRecieve == SOCKET_ERROR )
- {
- cout << "Recieve Fail" << endl;
- }
- else {
- cout << "\n" << cRecv << endl;
- }
Add Comment
Please, Sign In to add comment