JRTPLIB  3.11.0
Functions
rtpselect.h File Reference
#include "rtpconfig.h"
#include "rtptypes.h"
#include "rtperrors.h"
#include "rtptimeutilities.h"
#include "rtpsocketutil.h"
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
Include dependency graph for rtpselect.h:

Go to the source code of this file.

Functions

int jrtplib::RTPSelect (const SocketType *sockets, int8_t *readflags, size_t numsocks, RTPTime timeout)
 Wrapper function around 'select', 'poll' or 'WSAPoll', depending on the availability on your platform. More...
 

Function Documentation

int jrtplib::RTPSelect ( const SocketType *  sockets,
int8_t *  readflags,
size_t  numsocks,
RTPTime  timeout 
)
inline

Wrapper function around 'select', 'poll' or 'WSAPoll', depending on the availability on your platform. The function will check the specified sockets for incoming data and sets the flags in readflags if so. A maximum time timeout will be waited for data to arrive, which is indefinitely if set to a negative value. The function returns the number of sockets that have data incoming.

References jrtplib::RTPTime::GetDouble(), jrtplib::RTPTime::GetMicroSeconds(), jrtplib::RTPTime::GetSeconds(), and jrtplib::RTPSelect().

Referenced by jrtplib::RTPSelect().