|
live
|
#include <Groupsock.hh>


Public Member Functions | |
| Groupsock (UsageEnvironment &env, struct sockaddr_storage const &groupAddr, Port port, u_int8_t ttl) | |
| Groupsock (UsageEnvironment &env, struct sockaddr_storage const &groupAddr, struct sockaddr_storage const &sourceFilterAddr, Port port) | |
| virtual | ~Groupsock () |
| virtual destRecord * | createNewDestRecord (struct sockaddr_storage const &addr, Port const &port, u_int8_t ttl, unsigned sessionId, destRecord *next) |
| void | changeDestinationParameters (struct sockaddr_storage const &newDestAddr, Port newDestPort, int newDestTTL, unsigned sessionId=0) |
| unsigned | lookupSessionIdFromDestination (struct sockaddr_storage const &destAddrAndPort) const |
| virtual void | addDestination (struct sockaddr_storage const &addr, Port const &port, unsigned sessionId) |
| virtual void | removeDestination (unsigned sessionId) |
| void | removeAllDestinations () |
| Boolean | hasMultipleDestinations () const |
| struct sockaddr_storage const & | groupAddress () const |
| struct sockaddr_storage const & | sourceFilterAddress () const |
| Boolean | isSSM () const |
| u_int8_t | ttl () const |
| void | multicastSendOnly () |
| virtual Boolean | output (UsageEnvironment &env, unsigned char *buffer, unsigned bufferSize) |
| Boolean | wasLoopedBackFromUs (UsageEnvironment &env, struct sockaddr_storage const &fromAddressAndPort) |
| virtual Boolean | handleRead (unsigned char *buffer, unsigned bufferMaxSize, unsigned &bytesRead, struct sockaddr_storage &fromAddressAndPort) |
| virtual Boolean | write (struct sockaddr_storage const &addressAndPort, u_int8_t ttl, unsigned char *buffer, unsigned bufferSize) |
| void | reset () |
| int | socketNum () const |
| Port | port () const |
| UsageEnvironment & | env () const |
Data Fields | |
| NetInterfaceTrafficStats | statsGroupIncoming |
| NetInterfaceTrafficStats | statsGroupOutgoing |
Static Public Attributes | |
| static NetInterfaceTrafficStats | statsIncoming |
| static NetInterfaceTrafficStats | statsOutgoing |
| static int | DebugLevel |
| static UsageEnvironment * | DefaultUsageEnvironment |
Protected Member Functions | |
| destRecord * | lookupDestRecordFromDestination (struct sockaddr_storage const &targetAddrAndPort) const |
| portNumBits | sourcePortNum () const |
| Boolean | changePort (Port newPort) |
Protected Attributes | |
| destRecord * | fDests |
Private Member Functions | |
| void | removeDestinationFrom (destRecord *&dests, unsigned sessionId) |
Private Attributes | |
| GroupEId | fIncomingGroupEId |
| Port | fSourcePort |
| unsigned | fLastSentTTL |
| int | fSocketNum |
| UsageEnvironment & | fEnv |
| Port | fPort |
| int | fFamily |
Definition at line 78 of file Groupsock.hh.
| Groupsock::Groupsock | ( | UsageEnvironment & | env, |
| struct sockaddr_storage const & | groupAddr, | ||
| Port | port, | ||
| u_int8_t | ttl ) |
References Socket::env(), Socket::port(), and ttl().
| Groupsock::Groupsock | ( | UsageEnvironment & | env, |
| struct sockaddr_storage const & | groupAddr, | ||
| struct sockaddr_storage const & | sourceFilterAddr, | ||
| Port | port ) |
References Socket::env(), and Socket::port().
|
virtual |
|
virtual |
References Socket::port().
| void Groupsock::changeDestinationParameters | ( | struct sockaddr_storage const & | newDestAddr, |
| Port | newDestPort, | ||
| int | newDestTTL, | ||
| unsigned | sessionId = 0 ) |
|
virtual |
References Socket::port(), and ttl().
|
inlineinherited |
Definition at line 55 of file NetInterface.hh.
References fEnv.
Referenced by Groupsock::Groupsock(), Groupsock::Groupsock(), Groupsock::output(), OutputSocket::OutputSocket(), OutputSocket::OutputSocket(), Socket(), and Groupsock::wasLoopedBackFromUs().
|
inline |
Definition at line 114 of file Groupsock.hh.
References fIncomingGroupEId, and GroupEId::groupAddress().
|
virtual |
Reimplemented from OutputSocket.
|
inline |
|
inline |
Definition at line 121 of file Groupsock.hh.
References fIncomingGroupEId, and GroupEId::isSSM().
|
protected |
| unsigned Groupsock::lookupSessionIdFromDestination | ( | struct sockaddr_storage const & | destAddrAndPort | ) | const |
| void Groupsock::multicastSendOnly | ( | ) |
|
virtual |
References Socket::env().
|
inlineinherited |
Definition at line 51 of file NetInterface.hh.
References fPort.
Referenced by Groupsock::addDestination(), Groupsock::createNewDestRecord(), Groupsock::Groupsock(), Groupsock::Groupsock(), OutputSocket::OutputSocket(), and Socket().
| void Groupsock::removeAllDestinations | ( | ) |
|
virtual |
|
private |
|
inherited |
|
inlineinherited |
|
inline |
Definition at line 117 of file Groupsock.hh.
References fIncomingGroupEId, and GroupEId::sourceFilterAddress().
|
inlineprotectedinherited |
|
inline |
Definition at line 125 of file Groupsock.hh.
References fIncomingGroupEId, and GroupEId::ttl().
Referenced by createNewDestRecord(), and Groupsock().
| Boolean Groupsock::wasLoopedBackFromUs | ( | UsageEnvironment & | env, |
| struct sockaddr_storage const & | fromAddressAndPort ) |
References Socket::env().
|
virtualinherited |
|
staticinherited |
Definition at line 57 of file NetInterface.hh.
|
staticinherited |
Definition at line 32 of file NetInterface.hh.
|
protected |
Definition at line 151 of file Groupsock.hh.
Referenced by hasMultipleDestinations().
|
privateinherited |
Definition at line 66 of file NetInterface.hh.
Referenced by env().
|
privateinherited |
Definition at line 68 of file NetInterface.hh.
|
private |
Definition at line 153 of file Groupsock.hh.
Referenced by groupAddress(), isSSM(), sourceFilterAddress(), and ttl().
|
privateinherited |
Definition at line 59 of file Groupsock.hh.
|
privateinherited |
Definition at line 67 of file NetInterface.hh.
Referenced by port().
|
privateinherited |
Definition at line 65 of file NetInterface.hh.
Referenced by socketNum().
|
privateinherited |
Definition at line 58 of file Groupsock.hh.
Referenced by sourcePortNum().
| NetInterfaceTrafficStats Groupsock::statsGroupIncoming |
Definition at line 133 of file Groupsock.hh.
| NetInterfaceTrafficStats Groupsock::statsGroupOutgoing |
Definition at line 134 of file Groupsock.hh.
|
static |
Definition at line 131 of file Groupsock.hh.
|
static |
Definition at line 132 of file Groupsock.hh.