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

XSocketAddress Class Reference

Socket bad address exception. More...

#include <XSocket.h>

List of all members.

Public Types

enum  EError {
  kUnknown, kNotFound, kNoAddress, kUnsupported,
  kBadPort
}
 Failure codes. More...

Public Member Functions

 XSocketAddress (EError, const CString &hostname, int port) throw ()
accessors
EError getError () const throw ()
 Get the error code.
CString getHostname () const throw ()
 Get the hostname.
int getPort () const throw ()
 Get the port.

Protected Member Functions

virtual CString getWhat () const throw ()


Detailed Description

Socket bad address exception.

Thrown when attempting to create an invalid network address.

Definition at line 30 of file XSocket.h.


Member Enumeration Documentation

enum XSocketAddress::EError
 

Failure codes.

Enumeration values:
kUnknown  Unknown error.
kNotFound  The hostname is unknown.
kNoAddress  The hostname is valid but has no IP address.
kUnsupported  The hostname is valid but has no supported address.
kBadPort  The port is invalid.

Definition at line 33 of file XSocket.h.


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:21:44 2009 for synergy-plus by  doxygen 1.3.9.1