Changeset 4fcf7a4 in network-game


Ignore:
Timestamp:
Jul 16, 2013, 12:38:32 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
5755e68
Parents:
bd2502a
Message:

More debug info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    rbd2502a r4fcf7a4  
    4444      return -1; // don't do any further processing
    4545   }else {
    46       cout << "Received message" << endl;
    47       cout << "id: " << msg->id << endl;
    48       cout << "type: " << msg->type << endl;
    49       cout << "buffer: " << msg->buffer << endl;
     46      if (ret > -1) {
     47         cout << "Received message" << endl;
     48         cout << "id: " << msg->id << endl;
     49         cout << "type: " << msg->type << endl;
     50         cout << "buffer: " << msg->buffer << endl;
     51      }
    5052
    5153      NETWORK_MSG ack;
    5254      ack.id = msg->id;
    5355
    54       sendto(sock, (char*)&ack, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, sizeof(struct sockaddr_in));
     56      //sendto(sock, (char*)&ack, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, sizeof(struct sockaddr_in));
    5557   }
    5658
Note: See TracChangeset for help on using the changeset viewer.