Changeset 7402 for code/branches/ipv6/src/libraries/network/LANDiscovery.cc
- Timestamp:
- Sep 11, 2010, 2:31:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/libraries/network/LANDiscovery.cc
r7322 r7402 43 43 { 44 44 this->host_ = enet_host_create(NULL, 10, 0, 0, 0 ); 45 if ( this->host_ == NULL ) 46 COUT(1) << "LANDiscovery: host_ == NULL" << std::endl; 45 47 } 46 48 … … 62 64 address.host = ENET_HOST_BROADCAST; 63 65 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; 64 68 65 69 /* IPv6 */ 66 70 enet_address_set_host(&address, "ff02::1"); // TODO: use a multicast group 67 71 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; 68 74 69 75 ENetEvent event;
Note: See TracChangeset
for help on using the changeset viewer.