Changeset 787806f in network-game for common/Message.cpp


Ignore:
Timestamp:
Jul 2, 2013, 10:24:22 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
1a3c42d
Parents:
f3cf1a5
Message:

Added an ACK message type and a skeleton MessageProcessor class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Message.cpp

    rf3cf1a5 r787806f  
    2424}
    2525
    26 int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest)
     26int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *source)
    2727{
    2828   socklen_t socklen = sizeof(struct sockaddr_in);
    2929
    3030   // 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);
    3232
    3333   return ret;
Note: See TracChangeset for help on using the changeset viewer.