live
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes
Socket Class Referenceabstract

#include <NetInterface.hh>

Inheritance diagram for Socket:
Inheritance graph
[legend]
Collaboration diagram for Socket:
Collaboration graph
[legend]

Public Member Functions

virtual ~Socket ()
 
void reset ()
 
virtual Boolean handleRead (unsigned char *buffer, unsigned bufferMaxSize, unsigned &bytesRead, struct sockaddr_in &fromAddress)=0
 
int socketNum () const
 
Port port () const
 
UsageEnvironmentenv () const
 

Static Public Attributes

static int DebugLevel
 
static UsageEnvironmentDefaultUsageEnvironment
 

Protected Member Functions

 Socket (UsageEnvironment &env, Port port)
 
Boolean changePort (Port newPort)
 

Private Attributes

int fSocketNum
 
UsageEnvironmentfEnv
 
Port fPort
 

Detailed Description

Definition at line 80 of file NetInterface.hh.

Constructor & Destructor Documentation

virtual Socket::~Socket ( )
virtual
Socket::Socket ( UsageEnvironment env,
Port  port 
)
protected

Member Function Documentation

Boolean Socket::changePort ( Port  newPort)
protected
UsageEnvironment& Socket::env ( ) const
inline

Definition at line 96 of file NetInterface.hh.

References fEnv.

96 { return fEnv; }
UsageEnvironment & fEnv
virtual Boolean Socket::handleRead ( unsigned char *  buffer,
unsigned  bufferMaxSize,
unsigned &  bytesRead,
struct sockaddr_in &  fromAddress 
)
pure virtual

Implemented in Groupsock, and OutputSocket.

Port Socket::port ( ) const
inline

Definition at line 92 of file NetInterface.hh.

References fPort.

92  {
93  return fPort;
94  }
Port fPort
void Socket::reset ( )
int Socket::socketNum ( ) const
inline

Definition at line 90 of file NetInterface.hh.

References fSocketNum.

90 { return fSocketNum; }
int fSocketNum

Field Documentation

int Socket::DebugLevel
static

Definition at line 98 of file NetInterface.hh.

UsageEnvironment* NetInterface::DefaultUsageEnvironment
staticinherited

Definition at line 32 of file NetInterface.hh.

UsageEnvironment& Socket::fEnv
private

Definition at line 107 of file NetInterface.hh.

Referenced by env().

Port Socket::fPort
private

Definition at line 108 of file NetInterface.hh.

Referenced by port().

int Socket::fSocketNum
private

Definition at line 106 of file NetInterface.hh.

Referenced by socketNum().


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