HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_InetAddress Class Reference

#include <UT_IPC.h>

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
 
std::ostream & operator<< (std::ostream &os, const UT_InetAddress &ia)
 

Detailed Description

Definition at line 48 of file UT_IPC.h.

Member Enumeration Documentation

Enumerator
UT_NoHostGiven 
UT_UnknownHost 
UT_UnKnownService 
UT_HostFound 

Definition at line 56 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 76 of file UT_IPC.h.

int UT_InetAddress::isbroadcast ( ) const
inline

Definition at line 77 of file UT_IPC.h.

int UT_InetAddress::lookup ( const char *  hostname,
int  port 
)
protected
int UT_InetAddress::lookup ( const char *  hostname,
const char *  service,
const char *  proto 
)
protected
int UT_InetAddress::lookup ( int  aport)
inlineprotected

Definition at line 89 of file UT_IPC.h.

int UT_InetAddress::lookup ( const char *  service,
const char *  protocol 
)
inlineprotected

Definition at line 90 of file UT_IPC.h.

const char* UT_InetAddress::numeric_hostname ( ) const
int UT_InetAddress::ok ( ) const
inline

Definition at line 73 of file UT_IPC.h.

UT_InetAddress::operator CONST_SOCKADDR_PTR ( ) const
inline

Definition at line 80 of file UT_IPC.h.

UT_InetAddress::operator SOCKADDR_PTR ( )
inline

Definition at line 79 of file UT_IPC.h.

int UT_InetAddress::port ( ) const
int UT_InetAddress::size ( void  ) const
inline

Definition at line 75 of file UT_IPC.h.

UT_Status UT_InetAddress::status ( ) const
inline

Definition at line 74 of file UT_IPC.h.

Friends And Related Function Documentation

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

Definition at line 50 of file UT_IPC.h.

Member Data Documentation

struct sockaddr_in UT_InetAddress::address
protected

Definition at line 93 of file UT_IPC.h.

int UT_InetAddress::addrlen
protected

Definition at line 94 of file UT_IPC.h.

int UT_InetAddress::any_flag
protected

Definition at line 96 of file UT_IPC.h.

int UT_InetAddress::broadcast_flag
protected

Definition at line 97 of file UT_IPC.h.

UT_Status UT_InetAddress::state
protected

Definition at line 95 of file UT_IPC.h.

const char* UT_InetAddress::UT_Any
static

Definition at line 54 of file UT_IPC.h.

const char* UT_InetAddress::UT_Broadcast
static

Definition at line 55 of file UT_IPC.h.


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