Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CSockAddrIn Class Reference

A socket address wrapper. More...

#include <SockAddrIn.h>

List of all members.

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.


Detailed Description

A socket address wrapper.


Constructor & Destructor Documentation

OW32::CSockAddrIn::CSockAddrIn u_short  port = 0,
u_long  addr = INADDR_ANY
[inline]
 

Construct a default socket address of 0, INADDR_ANY (suitable for binding to a local port).


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:28 2005 for OW32 by  doxygen 1.3.9.1