#include <cNetPort.h>
Define known standard services/ports. NETSERVICE_TYPE. Ranging from 1 to 65535 (port number 0 is reserved and can't be used). http://en.wikipedia.org/wiki/TCP_and_UDP_port or https://www.cs.clemson.edu/course/cpsc424/material/TCP%20UDP%20Services/etc-services.pdf
- Note
- ports less than 1024 are reserved for system/privileged use. k_NET_PORT_RESERVE ports greater than 49152 are Ephemeral and free for all use. k_NET_PORT_TEMP
◆ FindPortByServiceName()
- Returns
- Port in Host order bytes.
◆ FindServiceNameByPort()
Find a service name or just a string number for the port number.
- wPort = Host order bytes.
◆ UNITTEST_FRIEND()
GrayLib::cNetPort::UNITTEST_FRIEND |
( |
cNetPort |
| ) |
|
◆ k_Default_Http
const NET_PORT_t GrayLib::cNetPort::k_Default_Http = 80 |
|
static |
◆ k_Prefix_Http
const char * GrayLib::cNetPort::k_Prefix_Http = "http" |
|
static |
◆ k_Prefix_Https
const char * GrayLib::cNetPort::k_Prefix_Https = "https" |
|
static |
◆ k_Services
const cNetPort GrayLib::cNetPort::k_Services |
|
static |
Initial value:=
{
{ "unk", 0 },
{ "file", k_NET_PORT_MAX },
{ "ftp", IPPORT_FTP },
{ "ftps", 990 },
{ "rtmp", 1935 },
{ nullptr, 0 },
}
static const NET_PORT_t k_Default_Http
Definition: cNetPort.h:73
static const char * k_Prefix_Http
Definition: cNetPort.h:71
static const char * k_Prefix_Https
Definition: cNetPort.h:72
◆ m_pszName
const char* GrayLib::cNetPort::m_pszName |
Name of the service. e.g. "http". NI_MAXSERV.
◆ m_wPortDefault
default port for the service type.
The documentation for this class was generated from the following files: