Changeset bd2502a in network-game for common/MessageProcessor.cpp
- Timestamp:
- Jul 16, 2013, 12:33:41 AM (11 years ago)
- Branches:
- master
- Children:
- 4fcf7a4
- Parents:
- 9557f92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.cpp
r9557f92 rbd2502a 16 16 MessageContainer message(*msg, *dest); 17 17 sentMessages[msg->id] = message; 18 19 cout << "Sending message" << endl; 20 cout << "id: " << msg->id << endl; 21 cout << "type: " << msg->type << endl; 22 cout << "buffer: " << msg->buffer << endl; 18 23 19 24 int ret = sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in)); … … 39 44 return -1; // don't do any further processing 40 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; 50 41 51 NETWORK_MSG ack; 42 52 ack.id = msg->id;
Note:
See TracChangeset
for help on using the changeset viewer.