Changeset 787806f in network-game for common/Message.cpp
- Timestamp:
- Jul 2, 2013, 10:24:22 PM (11 years ago)
- Branches:
- master
- Children:
- 1a3c42d
- Parents:
- f3cf1a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Message.cpp
rf3cf1a5 r787806f 24 24 } 25 25 26 int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in * dest)26 int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *source) 27 27 { 28 28 socklen_t socklen = sizeof(struct sockaddr_in); 29 29 30 30 // assume we don't care about the value of socklen 31 int ret = recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *) dest, &socklen);31 int ret = recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, &socklen); 32 32 33 33 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.