#include <Network.h++>
Static Public Member Functions | |
| static size_t | getInterfaces (std::vector< NetworkInterface > &list) throw (SystemException) |
| Get a list of all available network interfaces on the host system. | |
| static uint16_t | getPortForService (const String &service, NetProtocol &proto) throw () |
| Look up the port number for the given network service. | |
| static String | getServiceForPort (uint16_t port, NetProtocol &proto) throw () |
| Look up the network service name for the given port number. | |
Friends | |
| class | InetAddress |
| size_t getInterfaces | ( | std::vector< NetworkInterface > & | list | ) | throw (SystemException) [static] |
Get a list of all available network interfaces on the host system.
| list | The list in which to store the interface information. |
| SystemException | If an error occurs while retrieving the information. |
| uint16_t getPortForService | ( | const String & | service, | |
| NetProtocol & | proto | |||
| ) | throw () [static] |
Look up the port number for the given network service.
| service | The name of the service. | |
| proto | The protocol of the service; if ProtoAny, the value is updated to reflect the actual protocol of the service. |
| String getServiceForPort | ( | uint16_t | port, | |
| NetProtocol & | proto | |||
| ) | throw () [static] |
Look up the network service name for the given port number.
| port | The port number. | |
| proto | The protocol of the service; if ProtoAny, the value is updated to reflect the actual protocol of the service. |
friend class InetAddress [friend] |
1.5.9