UT_InetAddress Class Reference

#include <UT_IPC.h>

List of all members.

Public Types

enum  UT_Status { UT_NoHostGiven, UT_UnknownHost, UT_UnKnownService, UT_HostFound }

Public Member Functions

 UT_InetAddress ()
 UT_InetAddress (int port)
 UT_InetAddress (const char *service, const char *protocol)
 UT_InetAddress (const char *hostname, int port)
 UT_InetAddress (const char *hostname, const char *service, const char *proto)
const char * hostname () const
const char * numeric_hostname () const
int port () const
int ok () const
UT_Status status () const
int size () const
int isany () const
int isbroadcast () const
 operator SOCKADDR_PTR ()
 operator CONST_SOCKADDR_PTR () const

Static Public Attributes

static const char * UT_Any
static const char * UT_Broadcast

Protected Member Functions

int lookup (const char *hostname, int port)
int lookup (const char *hostname, const char *service, const char *proto)
int lookup (int aport)
int lookup (const char *service, const char *protocol)

Protected Attributes

struct sockaddr_in address
int addrlen
UT_Status state
int any_flag
int broadcast_flag

Friends

class UT_InetSocket
ostream & operator<< (ostream &os, const UT_InetAddress &ia)


Detailed Description

Definition at line 47 of file UT_IPC.h.


Member Enumeration Documentation

Enumerator:
UT_NoHostGiven 
UT_UnknownHost 
UT_UnKnownService 
UT_HostFound 

Definition at line 55 of file UT_IPC.h.


Constructor & Destructor Documentation

UT_InetAddress::UT_InetAddress (  ) 

UT_InetAddress::UT_InetAddress ( int  port  )  [explicit]

UT_InetAddress::UT_InetAddress ( const char *  service,
const char *  protocol 
)

UT_InetAddress::UT_InetAddress ( const char *  hostname,
int  port 
)

UT_InetAddress::UT_InetAddress ( const char *  hostname,
const char *  service,
const char *  proto 
)


Member Function Documentation

const char* UT_InetAddress::hostname (  )  const

int UT_InetAddress::isany (  )  const [inline]

Definition at line 75 of file UT_IPC.h.

int UT_InetAddress::isbroadcast (  )  const [inline]

Definition at line 76 of file UT_IPC.h.

int UT_InetAddress::lookup ( const char *  service,
const char *  protocol 
) [inline, protected]

Definition at line 89 of file UT_IPC.h.

int UT_InetAddress::lookup ( int  aport  )  [inline, protected]

Definition at line 88 of file UT_IPC.h.

int UT_InetAddress::lookup ( const char *  hostname,
const char *  service,
const char *  proto 
) [protected]

int UT_InetAddress::lookup ( const char *  hostname,
int  port 
) [protected]

const char* UT_InetAddress::numeric_hostname (  )  const

int UT_InetAddress::ok (  )  const [inline]

Definition at line 72 of file UT_IPC.h.

UT_InetAddress::operator CONST_SOCKADDR_PTR (  )  const [inline]

Definition at line 79 of file UT_IPC.h.

UT_InetAddress::operator SOCKADDR_PTR (  )  [inline]

Definition at line 78 of file UT_IPC.h.

int UT_InetAddress::port (  )  const

int UT_InetAddress::size (  )  const [inline]

Definition at line 74 of file UT_IPC.h.

UT_Status UT_InetAddress::status (  )  const [inline]

Definition at line 73 of file UT_IPC.h.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const UT_InetAddress ia 
) [friend]

friend class UT_InetSocket [friend]

Definition at line 49 of file UT_IPC.h.


Member Data Documentation

struct sockaddr_in UT_InetAddress::address [read, protected]

Definition at line 92 of file UT_IPC.h.

int UT_InetAddress::addrlen [protected]

Definition at line 93 of file UT_IPC.h.

int UT_InetAddress::any_flag [protected]

Definition at line 95 of file UT_IPC.h.

Definition at line 96 of file UT_IPC.h.

Definition at line 94 of file UT_IPC.h.

const char* UT_InetAddress::UT_Any [static]

Definition at line 53 of file UT_IPC.h.

const char* UT_InetAddress::UT_Broadcast [static]

Definition at line 54 of file UT_IPC.h.


The documentation for this class was generated from the following file:

Generated on Fri May 25 00:10:50 2012 for HDK by  doxygen 1.5.9