|
| SctpSocket () |
|
| SctpSocket (SOCKET fd) |
|
virtual | ~SctpSocket () |
|
virtual bool | bindx (ObjList &addresses)=0 |
|
virtual bool | connectx (ObjList &addresses)=0 |
|
virtual int | sendTo (void *buffer, int length, int stream, SocketAddr &addr, int flags)=0 |
|
virtual Socket * | accept (SocketAddr &addr) |
|
virtual int | sendMsg (const void *buf, int length, int stream, int &flags)=0 |
|
virtual int | recvMsg (void *buf, int length, SocketAddr &addr, int &stream, int &flags)=0 |
|
virtual bool | setStreams (int inbound, int outbound)=0 |
|
virtual bool | subscribeEvents ()=0 |
|
virtual bool | getStreams (int &inbound, int &outbound)=0 |
|
virtual bool | setPayload (u_int32_t payload)=0 |
|
| Socket () |
|
| Socket (SOCKET handle) |
|
| Socket (int domain, int type, int protocol=0) |
|
virtual | ~Socket () |
|
virtual bool | create (int domain, int type, int protocol=0) |
|
virtual bool | terminate () |
|
void | attach (SOCKET handle) |
|
SOCKET | detach () |
|
SOCKET | handle () const |
|
virtual bool | canRetry () const |
|
virtual bool | inProgress () const |
|
virtual bool | valid () const |
|
virtual bool | setOption (int level, int name, const void *value=0, socklen_t length=0) |
|
bool | setIpv6OnlyOption (bool on) |
|
virtual bool | getOption (int level, int name, void *buffer, socklen_t *length) |
|
virtual bool | setParams (const NamedList ¶ms) |
|
virtual bool | getParams (const String ¶ms, NamedList &result) |
|
virtual bool | setTOS (int tos) |
|
bool | setTOS (const char *tos, int defTos=Normal) |
|
virtual int | getTOS () |
|
virtual bool | setBlocking (bool block=true) |
|
virtual bool | setReuse (bool reuse=true, bool exclusive=false) |
|
virtual bool | setLinger (int seconds=-1) |
|
virtual bool | bind (struct sockaddr *addr, socklen_t addrlen) |
|
bool | bind (const SocketAddr &addr) |
|
virtual bool | listen (unsigned int backlog=0) |
|
virtual Socket * | accept (struct sockaddr *addr=0, socklen_t *addrlen=0) |
|
Socket * | accept (SocketAddr &addr) |
|
SOCKET | acceptHandle (struct sockaddr *addr=0, socklen_t *addrlen=0) |
|
bool | updateError () |
|
virtual bool | canSelect () const |
|
virtual bool | connect (struct sockaddr *addr, socklen_t addrlen) |
|
bool | connect (const SocketAddr &addr) |
|
virtual bool | connectAsync (struct sockaddr *addr, socklen_t addrlen, unsigned int toutUs, bool *timeout=0) |
|
bool | connectAsync (const SocketAddr &addr, unsigned int toutUs, bool *timeout=0) |
|
virtual bool | shutdown (bool stopReads, bool stopWrites) |
|
virtual bool | getSockName (struct sockaddr *addr, socklen_t *addrlen) |
|
bool | getSockName (SocketAddr &addr) |
|
virtual bool | getPeerName (struct sockaddr *addr, socklen_t *addrlen) |
|
bool | getPeerName (SocketAddr &addr) |
|
virtual int | sendTo (const void *buffer, int length, const struct sockaddr *addr, socklen_t adrlen, int flags=0) |
|
int | sendTo (const void *buffer, int length, const SocketAddr &addr, int flags=0) |
|
virtual int | send (const void *buffer, int length, int flags=0) |
|
virtual int | writeData (const void *buffer, int length) |
|
virtual int | recvFrom (void *buffer, int length, struct sockaddr *addr=0, socklen_t *adrlen=0, int flags=0) |
|
int | recvFrom (void *buffer, int length, SocketAddr &addr, int flags=0) |
|
virtual int | recv (void *buffer, int length, int flags=0) |
|
virtual int | readData (void *buffer, int length) |
|
virtual bool | select (bool *readok, bool *writeok, bool *except, struct timeval *timeout=0) |
|
bool | select (bool *readok, bool *writeok, bool *except, int64_t timeout) |
|
bool | installFilter (SocketFilter *filter) |
|
void | removeFilter (SocketFilter *filter, bool delobj=false) |
|
void | clearFilters () |
|
virtual void | timerTick (const Time &when) |
|
virtual | ~Stream () |
|
int | error () const |
|
int | writeData (const char *str) |
|
int | writeData (const String &str) |
|
int | writeData (const DataBlock &buf) |
|
virtual int64_t | length () |
|
virtual int64_t | seek (SeekPos pos, int64_t offset=0) |
|
int64_t | seek (int64_t offset) |
|
|
enum | TOS {
Normal = 0,
LowDelay = IPTOS_LOWDELAY,
MaxThroughput = IPTOS_THROUGHPUT,
MaxReliability = IPTOS_RELIABILITY,
MinCost = IPTOS_MINCOST
} |
|
enum | DSCP {
DefaultPHB = 0x00,
CS0 = 0x00,
CS1 = 0x20,
CS2 = 0x40,
CS3 = 0x60,
CS4 = 0x80,
CS5 = 0xa0,
CS6 = 0xc0,
CS7 = 0xe0,
AF11 = 0x28,
AF12 = 0x30,
AF13 = 0x38,
AF21 = 0x48,
AF22 = 0x50,
AF23 = 0x58,
AF31 = 0x68,
AF32 = 0x70,
AF33 = 0x78,
AF41 = 0x88,
AF42 = 0x90,
AF43 = 0x98,
ExpeditedFwd = 0xb8,
VoiceAdmit = 0xb0
} |
|
enum | SeekPos { SeekBegin,
SeekEnd,
SeekCurrent
} |
|
static SOCKET | invalidHandle () |
|
static int | socketError () |
|
static const TokenDict * | tosValues () |
|
static bool | efficientSelect () |
|
static bool | canSelect (SOCKET handle) |
|
static bool | createPair (Socket &sock1, Socket &sock2, int domain=AF_UNIX) |
|
static bool | allocPipe (Stream *&reader, Stream *&writer) |
|
static bool | allocPair (Stream *&str1, Stream *&str2) |
|
static bool | supportsPipes () |
|
static bool | supportsPairs () |
|
void | copyError () |
|
bool | checkError (int retcode, bool strict=false) |
|
bool | applyFilters (void *buffer, int length, int flags, const struct sockaddr *addr=0, socklen_t adrlen=0) |
|
| Stream () |
|
void | clearError () |
|
SOCKET | m_handle |
|
ObjList | m_filters |
|
int | m_error |
|
Abstract SCTP Socket.
The SctpSocket interface provides access to SCTP specific functions