Definition at line 17 of file NetInterface.cpp. 00018 :inDescr(0), outDescr(0) 00019 { 00020 if (_port > 0 && _port < 64000) 00021 { 00022 port = htons(_port); 00023 } 00024 else 00025 { 00026 throw NetInterfaceException("TCP port not possible "); 00027 } 00028 00029 if(inet_aton(_ip, &ip) == 0) 00030 { 00031 string error = "ERROR: "; 00032 error.append("wrong IP-address, "); 00033 error.append(_ip); 00034 throw NetInterfaceException(error.c_str()); 00035 } 00036 }
|
1.5.1