Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

scim::SocketAddress Class Reference
[Helper]

#include <scim_socket.h>

List of all members.

Public Member Functions

 SocketAddress (const String &addr=String())
 SocketAddress (const SocketAddress &addr)
 ~SocketAddress ()
const SocketAddressoperator= (const SocketAddress &addr)
bool valid () const
SocketFamily get_family () const
bool set_address (const String &addr)
String get_address () const
const void * get_data () const
int get_data_length () const


Detailed Description

class SocketAddress encapsulates the details of socket address, like socketaddr_un and socketaddr_in.

Definition at line 75 of file scim_socket.h.


Constructor & Destructor Documentation

scim::SocketAddress::SocketAddress const String addr = String()  ) 
 

constructor.

Parameters:
addr the string format of the address.

scim::SocketAddress::SocketAddress const SocketAddress addr  ) 
 

copy constructor.

scim::SocketAddress::~SocketAddress  ) 
 

destructor.


Member Function Documentation

const SocketAddress& scim::SocketAddress::operator= const SocketAddress addr  ) 
 

copy operator.

bool scim::SocketAddress::valid  )  const
 

check if this address is valid.

SocketFamily scim::SocketAddress::get_family  )  const
 

get the family of this socket address.

bool scim::SocketAddress::set_address const String addr  ) 
 

set a new address.

Parameters:
addr the string format of the address.

String scim::SocketAddress::get_address  )  const
 

get the string format of the address.

const void* scim::SocketAddress::get_data  )  const
 

get the data of socket address, used by class Socket

Returns:
the pointer to the data, usually a sockaddr struct.

int scim::SocketAddress::get_data_length  )  const
 

get the length of the data.


The documentation for this class was generated from the following file:
Generated on Fri May 7 17:27:34 2004 for scim by doxygen 1.3.6