Changeset 9b5d30b in network-game for common/MessageProcessor.cpp
- Timestamp:
- Jul 14, 2013, 9:22:38 PM (11 years ago)
- Branches:
- master
- Children:
- 10f6fc2
- Parents:
- 5a64bea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.cpp
r5a64bea r9b5d30b 11 11 12 12 int MessageProcessor::sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest) { 13 msg->id = ++lastUsedId; 13 14 MessageContainer message(*msg, *dest); 14 message.id = ++lastUsedId; 15 sentMessages[message.id] = message; 15 sentMessages[msg->id] = message; 16 16 17 17 int ret = sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in));
Note:
See TracChangeset
for help on using the changeset viewer.