Changeset 4fcf7a4 in network-game
- Timestamp:
- Jul 16, 2013, 12:38:32 AM (11 years ago)
- Branches:
- master
- Children:
- 5755e68
- Parents:
- bd2502a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.cpp
rbd2502a r4fcf7a4 44 44 return -1; // don't do any further processing 45 45 }else { 46 cout << "Received message" << endl; 47 cout << "id: " << msg->id << endl; 48 cout << "type: " << msg->type << endl; 49 cout << "buffer: " << msg->buffer << endl; 46 if (ret > -1) { 47 cout << "Received message" << endl; 48 cout << "id: " << msg->id << endl; 49 cout << "type: " << msg->type << endl; 50 cout << "buffer: " << msg->buffer << endl; 51 } 50 52 51 53 NETWORK_MSG ack; 52 54 ack.id = msg->id; 53 55 54 sendto(sock, (char*)&ack, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, sizeof(struct sockaddr_in));56 //sendto(sock, (char*)&ack, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, sizeof(struct sockaddr_in)); 55 57 } 56 58
Note:
See TracChangeset
for help on using the changeset viewer.