Changeset 9b5d30b in network-game for common/MessageProcessor.cpp


Ignore:
Timestamp:
Jul 14, 2013, 9:22:38 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
10f6fc2
Parents:
5a64bea
Message:

Moved server message sending/receiving into MessageProcessor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    r5a64bea r9b5d30b  
    1111
    1212int MessageProcessor::sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest) {
     13   msg->id = ++lastUsedId;
    1314   MessageContainer message(*msg, *dest);
    14    message.id = ++lastUsedId;
    15    sentMessages[message.id] = message;
     15   sentMessages[msg->id] = message;
    1616
    1717   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.