|
libcommonc++
0.7
|
Network-related routines. More...
#include <Network.h++>
Static Public Member Functions | |
| static uint_t | getInterfaces (std::vector< NetworkInterface > &list) |
| Get a list of all available network interfaces on the host system. More... | |
| static uint16_t | getPortForService (const String &service, NetProtocol &proto) |
| Look up the port number for the given network service. More... | |
| static String | getServiceForPort (uint16_t port, NetProtocol &proto) |
| Look up the network service name for the given port number. More... | |
Friends | |
| class | InetAddress |
Network-related routines.
|
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. |
|
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. |
|
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 |