Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2010, 8:33:58 PM (14 years ago)
Author:
smerkli
Message:

Further implementation, constructing a testing environment soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver/src/modules/masterserver/MasterServer.cpp

    r7569 r7580  
    4141
    4242  /* output debug info */
    43   printf( "A new client connected from %x:%u.\n",
    44       event->peer->address.host,
    45       event->peer->address.port);
     43  //printf( "A new client connected from %x:%u.\n",
     44      //event->peer->address.host,
     45      //event->peer->address.port);
    4646
    4747  /* game server or client connection? */
     
    6969
    7070  /* output that the disconnect happened, to be removed at a later time. */
    71   printf ("%s disconnected.\n", event.peer -> data);
     71  //printf ("%s disconnected.\n", event->peer -> data);
    7272
    7373  /* remove the server from the list it belongs to */
     
    8787
    8888  /* output debug info about the data that has come, to be removed */
    89   printf( "A packet of length %u containing %s was received from %s on channel %u.\n",
    90       event->packet->dataLength,
    91       event->packet->data,
    92       event->peer->data,
    93       event->channelID );
     89  //printf( "A packet of length %u containing %s was received from %s on channel %u.\n",
     90      //event->packet->dataLength,
     91      //event->packet->data,
     92      //event->peer->data,
     93      //event->channelID );
    9494 
    9595  /* game server or client connection? */
     
    155155
    156156  /***** ENTER MAIN LOOP *****/
    157   ENetEvent *event = calloc(sizeof(ENetEvent), sizeof(char));
     157  ENetEvent *event = (ENetEvent *)calloc(sizeof(ENetEvent), sizeof(char));
    158158  if( event == NULL )
    159159  { fprintf( stderr, "Could not create ENetEvent structure, exiting.\n" );
Note: See TracChangeset for help on using the changeset viewer.