Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 2:31:39 AM (14 years ago)
Author:
adrfried
Message:

add some error messages in orxonox network code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/libraries/network/LANDiscovery.cc

    r7322 r7402  
    4343  {
    4444    this->host_ = enet_host_create(NULL, 10, 0, 0, 0 );
     45    if ( this->host_ == NULL )
     46        COUT(1) << "LANDiscovery: host_ == NULL" << std::endl;
    4547  }
    4648
     
    6264    address.host = ENET_HOST_BROADCAST;
    6365    peer = enet_host_connect(this->host_, &address, 0, 0);
     66    if (peer == NULL)
     67        COUT(1) << "Error: Could not send LAN discovery to IPv4 Broadcast." << std::endl;
    6468
    6569    /* IPv6 */
    6670    enet_address_set_host(&address, "ff02::1"); // TODO: use a multicast group
    6771    peer = enet_host_connect(this->host_, &address, 0, 0);
     72    if (peer == NULL)
     73        COUT(1) << "Error: Could not send LAN discovery to IPv6 Multicast." << std::endl;
    6874
    6975    ENetEvent event;
Note: See TracChangeset for help on using the changeset viewer.