Rudiments
Public Member Functions
clientsocket Class Reference

Inherits client.

Inherited by inetclientsocket, and unixclientsocket.

List of all members.

Public Member Functions

 clientsocket ()
 clientsocket (const clientsocket &c)
clientsocketoperator= (const clientsocket &c)
virtual ~clientsocket ()
virtual bool supportsBlockingNonBlockingModes ()
virtual bool useNonBlockingMode () const
virtual bool useBlockingMode () const
virtual bool isUsingNonBlockingMode () const
virtual int32_t ioCtl (int32_t command, void *arg) const

Detailed Description

The clientsocket class provides a base class for classes that implement the client side of a client-server communication model over a socket.


Constructor & Destructor Documentation

clientsocket::clientsocket ( )

Creates an instance of the clientsocket class.

clientsocket::clientsocket ( const clientsocket c)

Creates an instance of the clientsocket class that is a copy of "c".

virtual clientsocket::~clientsocket ( ) [virtual]

Deletes this instance of the clientsocket class.


Member Function Documentation

virtual int32_t clientsocket::ioCtl ( int32_t  command,
void *  arg 
) const [virtual]

Use the ioctl() system call to perform various low-level file descriptor operations.

Reimplemented from filedescriptor.

virtual bool clientsocket::isUsingNonBlockingMode ( ) const [virtual]

Returns true if the file descriptor is in non-blocking mode and false otherwise.

Reimplemented from filedescriptor.

clientsocket& clientsocket::operator= ( const clientsocket c)

Makes this instance of the clientsocket class idenitcal to "c".

virtual bool clientsocket::supportsBlockingNonBlockingModes ( ) [virtual]

Returns true if the client socket supports blocking/nonblocking modes and false otherwise.

Reimplemented from filedescriptor.

virtual bool clientsocket::useBlockingMode ( ) const [virtual]

Puts the client socket in blocking mode. Returns true on success and false on failure. Returns false if the system doesn't support blocking/nonblocking modes.

Reimplemented from filedescriptor.

virtual bool clientsocket::useNonBlockingMode ( ) const [virtual]

Puts the client socket in non-blocking mode. Returns true on success and false on failure. Returns false if the system doesn't support blocking/nonblocking modes.

Reimplemented from filedescriptor.