Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2007, 11:24:25 PM (17 years ago)
Author:
scheusso
Message:

some bugfixes(clientinformation, client), enhancements(client, server) and tests(chatserver/client)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/ClientConnection.cc

    r369 r448  
    8282    if(enet_peer_send(server, 1, packet)!=0)
    8383      return false;
    84     else
    85       return true;
     84    return true;
    8685  }
    8786
     
    8988    if(server==NULL)
    9089      return false;
    91     if(enet_host_service(client, event, NETWORK_SEND_WAIT)>=0)
    92       return true;
     90    if(enet_host_service(client, event, NETWORK_SEND_WAIT)>=0){
     91      return true;}
    9392    else
    9493      return false;
     
    9998    if(server==NULL)
    10099      return false;
    101     if(enet_host_service(client, &event, NETWORK_SEND_WAIT)>=0)
    102       return true;
     100    if(enet_host_service(client, &event, NETWORK_SEND_WAIT)>=0){
     101      return true;}
    103102    else
    104103      return false;
     
    130129      case ENET_EVENT_TYPE_CONNECT:
    131130      case ENET_EVENT_TYPE_RECEIVE:
     131        std::cout << "got packet" << std::endl;
    132132        processData(&event);
    133133        break;
Note: See TracChangeset for help on using the changeset viewer.