Socket Class Reference

#include <NetInterface.hh>

Inheritance diagram for Socket:

Inheritance graph
Collaboration diagram for Socket:

Collaboration graph

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
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

void Socket::reset (  ) 

virtual Boolean Socket::handleRead ( unsigned char *  buffer,
unsigned  bufferMaxSize,
unsigned &  bytesRead,
struct sockaddr_in &  fromAddress 
) [pure virtual]

Implemented in OutputSocket, and Groupsock.

int Socket::socketNum (  )  const [inline]

Definition at line 90 of file NetInterface.hh.

References fSocketNum.

00090 { return fSocketNum; }

Port Socket::port (  )  const [inline]

Definition at line 92 of file NetInterface.hh.

References fPort.

00092                     {
00093     return fPort;
00094   }

UsageEnvironment& Socket::env (  )  const [inline]

Definition at line 96 of file NetInterface.hh.

References fEnv.

00096 { return fEnv; }

Boolean Socket::changePort ( Port  newPort  )  [protected]

Field Documentation

int Socket::DebugLevel [static]

Definition at line 98 of file NetInterface.hh.

int Socket::fSocketNum [private]

Definition at line 106 of file NetInterface.hh.

Referenced by socketNum().

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().

UsageEnvironment* NetInterface::DefaultUsageEnvironment [static, inherited]

Definition at line 32 of file NetInterface.hh.

The documentation for this class was generated from the following file:
Generated on Sun Jan 4 13:17:05 2015 for live by  doxygen 1.5.2