Changeset 7b43385 in network-game for common/Message.cpp
- Timestamp:
- Feb 24, 2013, 1:31:44 AM (12 years ago)
- Branches:
- master
- Children:
- 3d81c0d, 60940f8
- Parents:
- ca44f82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Message.cpp
rca44f82 r7b43385 19 19 int ret = sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in)); 20 20 21 cout << "Sent message of type " << msg->type << endl;22 23 21 return ret; 24 22 } … … 31 29 int ret = recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, &socklen); 32 30 33 if (ret > -1)34 cout << "Received message of type " << msg->type << endl;35 36 31 return ret; 37 32 }
Note:
See TracChangeset
for help on using the changeset viewer.