#include <SockAddrIn.h>
Public Member Functions | |
CSockAddrIn (u_short port=0, u_long addr=INADDR_ANY) | |
Construct a default socket address of 0, INADDR_ANY (suitable for binding to a local port). | |
void | SetPort (u_short port) |
Set the port. | |
unsigned long | GetPort () |
Get the port. | |
void | SetAddr (u_long addr) |
Set the address. | |
unsigned long | GetAddr () |
Get the address. | |
bool | SetLiteralIP (const char *literal_ip) |
Set a literal IP string. | |
bool | SetHostName (const char *hostName) |
Resolve a host name or literal ip. |
|
Construct a default socket address of 0, INADDR_ANY (suitable for binding to a local port).
|