Logo Search packages:      
Sourcecode: vdccm version File versions

NetSocket Class Reference

#include <netsocket.h>

Inheritance diagram for NetSocket:

Descriptor LocalSocket TCPSocket UDPSocket LocalConnectedSocket LocalServerSocket TCPConnectedSocket TCPServerSocket LocalAcceptedSocket LocalClientSocket LocalServer TCPAcceptedSocket TCPClientSocket DccmServer SynCEClient

List of all members.

Detailed Description

Volker Christian <voc@users.sourceforge.net>

Definition at line 20 of file netsocket.h.

Public Types

enum  eventType { READ = 0, WRITE, EXCEPTION }

Public Member Functions

virtual bool close ()
 Closes the descriptor.
bool dataPending (int sec, int usec) const
 Check if data are pending to read.
int getDescriptor () const
 Returns the integer value which represents the descriptor by the underlying Operating System.
bool operator< (const Descriptor &descriptor) const
 Lesser-operator on the descriptor base.
ssize_t readNumBytes (unsigned char *buffer, size_t number) const
bool setBlocking ()
bool setNonBlocking ()
bool setReadTimeout (int sec, int usec)
bool setWriteTimeout (int sec, int usec)
bool writable (int sec, int usec)

Protected Member Functions

virtual void event (enum eventType et)=0
void setDescriptor (int descriptor)

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

Generated by  Doxygen 1.6.0   Back to index