NDConn Class Reference

A NetDog connection. More...

List of all members.

Public Member Functions

 NDConn (void *)
 Constructor, do not call this directly; use NDChannel::loginToHost to connect a client to a server.
NDResult close (void)
 Closes (disconnects) this connection.
NDIdentity getRemoteIdentity (void)
 Gets the identity object for the remote endpoint of this connection.
const NDSocketAddressgetRemoteSocketAddress (void)
 Gets the socket address for the remote endpoint of this connection.

Detailed Description

An NDConn represents a single client connection to a NetDog-based server or a single server-side connection to a NetDog-based client


Constructor & Destructor Documentation

NDConn::NDConn ( void *  ptr  ) 

Constructor, do not call this directly; use NDChannel::loginToHost to connect a client to a server


Member Function Documentation

NDResult NDConn::close ( void   ) 

Closes (disconnects) this connection

Returns:
NDRES_OK if the connection was successfully closed
value other than NDRES_OK if there was a problem closing the connection
NDIdentity NDConn::getRemoteIdentity ( void   ) 

Gets the identity object for the remote endpoint of this connection

Returns:
The identify object for the remote endpoint
const NDSocketAddress * NDConn::getRemoteSocketAddress ( void   ) 

Gets the socket address for the remote endpoint of this connection

Returns:
The socket address for the remote endpoint

Generated on Wed Jul 21 18:14:48 2010 for nd2 by  doxygen 1.6.1