Changeset bd2502a in network-game for common/MessageProcessor.cpp


Ignore:
Timestamp:
Jul 16, 2013, 12:33:41 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
4fcf7a4
Parents:
9557f92
Message:

Added debug info to MessageProcessor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    r9557f92 rbd2502a  
    1616   MessageContainer message(*msg, *dest);
    1717   sentMessages[msg->id] = message;
     18
     19   cout << "Sending message" << endl;
     20   cout << "id: " << msg->id << endl;
     21   cout << "type: " << msg->type << endl;
     22   cout << "buffer: " << msg->buffer << endl;
    1823
    1924   int ret =  sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in));
     
    3944      return -1; // don't do any further processing
    4045   }else {
     46      cout << "Received message" << endl;
     47      cout << "id: " << msg->id << endl;
     48      cout << "type: " << msg->type << endl;
     49      cout << "buffer: " << msg->buffer << endl;
     50
    4151      NETWORK_MSG ack;
    4252      ack.id = msg->id;
Note: See TracChangeset for help on using the changeset viewer.