reSIProcate/rutil  9694
Classes | Namespaces | Defines | Typedefs | Functions
Socket.hxx File Reference

Handles cross-platform sockets compatibility. More...

#include <cassert>
#include <errno.h>
#include <algorithm>
#include "compat.hxx"
#include "rutil/TransportType.hxx"
Include dependency graph for Socket.hxx:
This graph shows which files directly or indirectly include this file:

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;


Defines

#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)
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)

Detailed Description

Handles cross-platform sockets compatibility.

Definition in file Socket.hxx.


Define Documentation

#define INVALID_SOCKET   (-1)
#define SOCKET_ERROR   (-1)

Definition at line 96 of file Socket.hxx.

Referenced by getMessage(), sendMessage(), and stunNatType().

#define WSANOTINITIALISED   EPROTONOSUPPORT

Definition at line 82 of file Socket.hxx.

Referenced by resip::DnsUtil::getLocalHostName(), and stunParseHostName().