OutputSocket Class Reference

#include <Groupsock.hh>

Inheritance diagram for OutputSocket:

Inheritance graph
Collaboration diagram for OutputSocket:

Collaboration graph

Public Member Functions

 OutputSocket (UsageEnvironment &env)
virtual ~OutputSocket ()
Boolean write (netAddressBits address, Port port, u_int8_t ttl, unsigned char *buffer, unsigned bufferSize)
void reset ()
int socketNum () const
Port port () const
UsageEnvironmentenv () const

Static Public Attributes

static int DebugLevel
static UsageEnvironmentDefaultUsageEnvironment

Protected Member Functions

 OutputSocket (UsageEnvironment &env, Port port)
portNumBits sourcePortNum () const
Boolean changePort (Port newPort)

Private Member Functions

virtual Boolean handleRead (unsigned char *buffer, unsigned bufferMaxSize, unsigned &bytesRead, struct sockaddr_in &fromAddress)

Private Attributes

Port fSourcePort
unsigned fLastSentTTL

Detailed Description

Definition at line 39 of file Groupsock.hh.

Constructor & Destructor Documentation

OutputSocket::OutputSocket ( UsageEnvironment env  ) 

virtual OutputSocket::~OutputSocket (  )  [virtual]

OutputSocket::OutputSocket ( UsageEnvironment env,
Port  port 
) [protected]

Member Function Documentation

Boolean OutputSocket::write ( netAddressBits  address,
Port  port,
u_int8_t  ttl,
unsigned char *  buffer,
unsigned  bufferSize 

portNumBits OutputSocket::sourcePortNum (  )  const [inline, protected]

Definition at line 50 of file Groupsock.hh.

References fSourcePort, and Port::num().

00050 {return fSourcePort.num();}

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

Implements Socket.

Reimplemented in Groupsock.

void Socket::reset (  )  [inherited]

int Socket::socketNum (  )  const [inline, inherited]

Definition at line 90 of file NetInterface.hh.

References Socket::fSocketNum.

00090 { return fSocketNum; }

Port Socket::port (  )  const [inline, inherited]

Definition at line 92 of file NetInterface.hh.

References Socket::fPort.

00092                     {
00093     return fPort;
00094   }

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

Definition at line 96 of file NetInterface.hh.

References Socket::fEnv.

00096 { return fEnv; }

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

Field Documentation

Port OutputSocket::fSourcePort [private]

Definition at line 58 of file Groupsock.hh.

Referenced by sourcePortNum().

unsigned OutputSocket::fLastSentTTL [private]

Definition at line 59 of file Groupsock.hh.

int Socket::DebugLevel [static, inherited]

Definition at line 98 of file NetInterface.hh.

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 Mon Sep 22 12:07:27 2014 for live by  doxygen 1.5.2