live
|
Go to the source code of this file.
Data Structures | |
class | NoReuse |
struct | _groupsockPriv |
Macros | |
#define | MSG_NOSIGNAL 0 |
#define | SET_SOCKADDR_SIN_LEN(var) |
#define | SET_SOCKADDR_SIN6_LEN(var) |
#define | MAKE_SOCKADDR_IN(var, adr, prt) |
#define | MAKE_SOCKADDR_IN6(var, adr, prt) |
Functions | |
int | setupDatagramSocket (UsageEnvironment &env, Port port, int domain) |
int | setupStreamSocket (UsageEnvironment &env, Port port, int domain, Boolean makeNonBlocking=True, Boolean setKeepAlive=False) |
int | readSocket (UsageEnvironment &env, int socket, unsigned char *buffer, unsigned bufferSize, struct sockaddr_storage &fromAddress) |
Boolean | writeSocket (UsageEnvironment &env, int socket, struct sockaddr_storage const &addressAndPort, u_int8_t ttlArg, unsigned char *buffer, unsigned bufferSize) |
Boolean | writeSocket (UsageEnvironment &env, int socket, struct sockaddr_storage const &addressAndPort, unsigned char *buffer, unsigned bufferSize) |
void | ignoreSigPipeOnSocket (int socketNum) |
unsigned | getSendBufferSize (UsageEnvironment &env, int socket) |
unsigned | getReceiveBufferSize (UsageEnvironment &env, int socket) |
unsigned | setSendBufferTo (UsageEnvironment &env, int socket, unsigned requestedSize) |
unsigned | setReceiveBufferTo (UsageEnvironment &env, int socket, unsigned requestedSize) |
unsigned | increaseSendBufferTo (UsageEnvironment &env, int socket, unsigned requestedSize) |
unsigned | increaseReceiveBufferTo (UsageEnvironment &env, int socket, unsigned requestedSize) |
Boolean | makeSocketNonBlocking (int sock) |
Boolean | makeSocketBlocking (int sock, unsigned writeTimeoutInMilliseconds=0) |
Boolean | setSocketKeepAlive (int sock) |
Boolean | socketJoinGroup (UsageEnvironment &env, int socket, struct sockaddr_storage const &groupAddress) |
Boolean | socketLeaveGroup (UsageEnvironment &, int socket, struct sockaddr_storage const &groupAddress) |
Boolean | socketJoinGroupSSM (UsageEnvironment &env, int socket, struct sockaddr_storage const &groupAddress, struct sockaddr_storage const &sourceFilterAddr) |
Boolean | socketLeaveGroupSSM (UsageEnvironment &, int socket, struct sockaddr_storage const &groupAddress, struct sockaddr_storage const &sourceFilterAddr) |
Boolean | getSourcePort (UsageEnvironment &env, int socket, int domain, Port &port) |
ipv4AddressBits | ourIPv4Address (UsageEnvironment &env) |
ipv6AddressBits const & | ourIPv6Address (UsageEnvironment &env) |
Boolean | weHaveAnIPv4Address (UsageEnvironment &env) |
Boolean | weHaveAnIPv6Address (UsageEnvironment &env) |
Boolean | weHaveAnIPAddress (UsageEnvironment &env) |
ipv4AddressBits | chooseRandomIPv4SSMAddress (UsageEnvironment &env) |
char const * | timestampString () |
_groupsockPriv * | groupsockPriv (UsageEnvironment &env) |
void | reclaimGroupsockPriv (UsageEnvironment &env) |
void | our_srandom (int x) |
long | our_random () |
u_int32_t | our_random32 () |
Variables | |
ipv4AddressBits | SendingInterfaceAddr |
ipv4AddressBits | ReceivingInterfaceAddr |
in6_addr | ReceivingInterfaceAddr6 |
#define MAKE_SOCKADDR_IN | ( | var, | |
adr, | |||
prt | |||
) |
Definition at line 112 of file GroupsockHelper.hh.
#define MAKE_SOCKADDR_IN6 | ( | var, | |
adr, | |||
prt | |||
) |
Definition at line 118 of file GroupsockHelper.hh.
#define MSG_NOSIGNAL 0 |
Definition at line 29 of file GroupsockHelper.hh.
#define SET_SOCKADDR_SIN6_LEN | ( | var | ) |
Definition at line 109 of file GroupsockHelper.hh.
#define SET_SOCKADDR_SIN_LEN | ( | var | ) |
Definition at line 108 of file GroupsockHelper.hh.
ipv4AddressBits chooseRandomIPv4SSMAddress | ( | UsageEnvironment & | env | ) |
unsigned getReceiveBufferSize | ( | UsageEnvironment & | env, |
int | socket | ||
) |
unsigned getSendBufferSize | ( | UsageEnvironment & | env, |
int | socket | ||
) |
Boolean getSourcePort | ( | UsageEnvironment & | env, |
int | socket, | ||
int | domain, | ||
Port & | port | ||
) |
_groupsockPriv * groupsockPriv | ( | UsageEnvironment & | env | ) |
void ignoreSigPipeOnSocket | ( | int | socketNum | ) |
unsigned increaseReceiveBufferTo | ( | UsageEnvironment & | env, |
int | socket, | ||
unsigned | requestedSize | ||
) |
unsigned increaseSendBufferTo | ( | UsageEnvironment & | env, |
int | socket, | ||
unsigned | requestedSize | ||
) |
Boolean makeSocketBlocking | ( | int | sock, |
unsigned | writeTimeoutInMilliseconds = 0 |
||
) |
Boolean makeSocketNonBlocking | ( | int | sock | ) |
long our_random | ( | ) |
u_int32_t our_random32 | ( | ) |
void our_srandom | ( | int | x | ) |
ipv4AddressBits ourIPv4Address | ( | UsageEnvironment & | env | ) |
ipv6AddressBits const & ourIPv6Address | ( | UsageEnvironment & | env | ) |
int readSocket | ( | UsageEnvironment & | env, |
int | socket, | ||
unsigned char * | buffer, | ||
unsigned | bufferSize, | ||
struct sockaddr_storage & | fromAddress | ||
) |
void reclaimGroupsockPriv | ( | UsageEnvironment & | env | ) |
unsigned setReceiveBufferTo | ( | UsageEnvironment & | env, |
int | socket, | ||
unsigned | requestedSize | ||
) |
unsigned setSendBufferTo | ( | UsageEnvironment & | env, |
int | socket, | ||
unsigned | requestedSize | ||
) |
Boolean setSocketKeepAlive | ( | int | sock | ) |
int setupDatagramSocket | ( | UsageEnvironment & | env, |
Port | port, | ||
int | domain | ||
) |
int setupStreamSocket | ( | UsageEnvironment & | env, |
Port | port, | ||
int | domain, | ||
Boolean | makeNonBlocking = True , |
||
Boolean | setKeepAlive = False |
||
) |
Boolean socketJoinGroup | ( | UsageEnvironment & | env, |
int | socket, | ||
struct sockaddr_storage const & | groupAddress | ||
) |
Boolean socketJoinGroupSSM | ( | UsageEnvironment & | env, |
int | socket, | ||
struct sockaddr_storage const & | groupAddress, | ||
struct sockaddr_storage const & | sourceFilterAddr | ||
) |
Boolean socketLeaveGroup | ( | UsageEnvironment & | , |
int | socket, | ||
struct sockaddr_storage const & | groupAddress | ||
) |
Boolean socketLeaveGroupSSM | ( | UsageEnvironment & | , |
int | socket, | ||
struct sockaddr_storage const & | groupAddress, | ||
struct sockaddr_storage const & | sourceFilterAddr | ||
) |
char const * timestampString | ( | ) |
Boolean weHaveAnIPAddress | ( | UsageEnvironment & | env | ) |
Boolean weHaveAnIPv4Address | ( | UsageEnvironment & | env | ) |
Boolean weHaveAnIPv6Address | ( | UsageEnvironment & | env | ) |
Boolean writeSocket | ( | UsageEnvironment & | env, |
int | socket, | ||
struct sockaddr_storage const & | addressAndPort, | ||
u_int8_t | ttlArg, | ||
unsigned char * | buffer, | ||
unsigned | bufferSize | ||
) |
Boolean writeSocket | ( | UsageEnvironment & | env, |
int | socket, | ||
struct sockaddr_storage const & | addressAndPort, | ||
unsigned char * | buffer, | ||
unsigned | bufferSize | ||
) |
|
extern |
|
extern |
|
extern |