|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Handles cross-platform sockets compatibility. More...
#include "rutil/ResipAssert.h"#include <errno.h>#include <algorithm>#include "compat.hxx"#include "rutil/TransportType.hxx"Go to the source code of this file.
Classes | |
| class | resip::FdSet |
| Object-oriented wrapper for your platform's file-descriptor set. More... | |
Namespaces | |
| namespace | resip |
| dcm! – add UnusedChecking(_enum) below; | |
Macros | |
| #define | WSANOTINITIALISED EPROTONOSUPPORT |
| #define | INVALID_SOCKET (-1) |
| #define | SOCKET_ERROR (-1) |
Typedefs | |
| typedef int | resip::Socket |
| typedef void(* | resip::AfterSocketCreationFuncPtr) (Socket s, int transportType, const char *file, int line) |
Functions | |
| void | resip::initNetwork () |
| set up network - does nothing in unix but needed for windows | |
| int | resip::getErrno () |
| bool | resip::makeSocketNonBlocking (Socket fd) |
| bool | resip::makeSocketBlocking (Socket fd) |
| bool | resip::configureConnectedSocket (Socket fd) |
| int | resip::closeSocket (Socket fd) |
| int | resip::getSocketError (Socket fd) |
| int | resip::increaseLimitFds (unsigned int targetFds) |
| Returns negative on error, or number of (positive) allowed fds. | |
| int | resip::setSocketRcvBufLen (Socket fd, int buflen) |
| int | resip::setSocketDscp (Socket fd, int dscp, IpVersion version) |
| Sets the DSCP class of {fd}, in the IPv4 ToS byte or the IPv6 traffic class, and reads it back. | |
| int | resip::getSocketTos (Socket fd, IpVersion version) |
| Reads the IPv4 ToS byte, or the IPv6 traffic class, of {fd}. | |
| int | resip::getSocketDscp (Socket fd, IpVersion version) |
| The DSCP class of {fd}, which is getSocketTos() without the ECN bits. | |
Handles cross-platform sockets compatibility.
Definition in file Socket.hxx.
| #define INVALID_SOCKET (-1) |
Definition at line 95 of file Socket.hxx.
| #define SOCKET_ERROR (-1) |
Definition at line 96 of file Socket.hxx.
| #define WSANOTINITIALISED EPROTONOSUPPORT |
Definition at line 82 of file Socket.hxx.