6 #ifndef _INC_cNetPort_H
7 #define _INC_cNetPort_H
12 #include "../GrayLibBase.h"
23 static const StrLen_t k_NET_HOSTNAME_MAX = 1024;
26 static const NET_PORT_t k_NET_PORT_INVALID = 0;
27 static const NET_PORT_t k_NET_PORT_RESERVE = 1024;
28 static const NET_PORT_t k_NET_PORT_TEMP = 49152;
29 static const NET_PORT_t k_NET_PORT_MAX = 0xFFFF;
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cNetPort.h:63
static const char * k_Prefix_Http
Definition: cNetPort.h:71
NET_PORT_t m_wPortDefault
default port for the service type.
Definition: cNetPort.h:78
UNITTEST_FRIEND(cNetPort)
static const char * k_Prefix_Https
Definition: cNetPort.h:72
const char * m_pszName
Name of the service. e.g. "http". NI_MAXSERV.
Definition: cNetPort.h:77
WORD NET_PORT_t
WinINet calls ports NET_PORT_t INTERNET_PORT = a service.
Definition: cNetPort.h:21
UNITTEST2_PREDEF(cQuadtree)
NETSERVICE_TYPE
Definition: cNetPort.h:32
@ NETSERVICE_rtmp
port 1935 = Flash video. (http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol)
Definition: cNetPort.h:48
@ NETSERVICE_ftps
port 990 = FTPS command port. explicit SSL/TLS mode.
Definition: cNetPort.h:40
@ NETSERVICE_file
local file system. Not really a port at all.
Definition: cNetPort.h:38
@ NETSERVICE_ftp
port 21 = IPPORT_FTP command port. INTERNET_DEFAULT_FTP_PORT
Definition: cNetPort.h:39
@ NETSERVICE_https
port 443 (NOT the same as S-HTTP) INTERNET_DEFAULT_HTTPS_PORT
Definition: cNetPort.h:42
@ NETSERVICE_UNDEF
undefined service.
Definition: cNetPort.h:37
@ NETSERVICE_QTY
Definition: cNetPort.h:59
@ NETSERVICE_http
port 80 = IPPORT_HTTP = HTTP default = INTERNET_DEFAULT_HTTP_PORT =
Definition: cNetPort.h:41
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32