live
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
OutputSocket Class Reference

#include <Groupsock.hh>

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

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 Socket::changePort ( Port  newPort)
protectedinherited
UsageEnvironment& Socket::env ( ) const
inlineinherited

Definition at line 96 of file NetInterface.hh.

References Socket::fEnv.

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

Implements Socket.

Reimplemented in Groupsock.

Port Socket::port ( ) const
inlineinherited

Definition at line 92 of file NetInterface.hh.

References Socket::fPort.

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

Definition at line 90 of file NetInterface.hh.

References Socket::fSocketNum.

90 { return fSocketNum; }
int fSocketNum
portNumBits OutputSocket::sourcePortNum ( ) const
inlineprotected

Definition at line 50 of file Groupsock.hh.

References fSourcePort, and Port::num().

50 {return fSourcePort.num();}
Port fSourcePort
Definition: Groupsock.hh:58
portNumBits num() const
Definition: NetAddress.hh:98
Boolean OutputSocket::write ( netAddressBits  address,
Port  port,
u_int8_t  ttl,
unsigned char *  buffer,
unsigned  bufferSize 
)

Field Documentation

int Socket::DebugLevel
staticinherited

Definition at line 98 of file NetInterface.hh.

UsageEnvironment* NetInterface::DefaultUsageEnvironment
staticinherited

Definition at line 32 of file NetInterface.hh.

unsigned OutputSocket::fLastSentTTL
private

Definition at line 59 of file Groupsock.hh.

Port OutputSocket::fSourcePort
private

Definition at line 58 of file Groupsock.hh.

Referenced by sourcePortNum().


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