48#if defined(WIN32) | defined(WIN64)
49#define _WINSOCK_DEPRECATED_NO_WARNINGS
53#pragma comment (lib,"ws2_32.lib")
58#define cSocket_errno WSAGetLastError()
64#include <netinet/in.h>
65#include <netinet/tcp.h>
68#include <sys/socket.h>
69#include <sys/select.h>
74#define SOCKET_ERROR -1
75#define INVALID_SOCKET (~0)
76#define cSocket_errno errno
char brd_t
Definition CSocketHelper.h:57
int socklen_t
Definition CSocketHelper.h:56
SSIZE_T ssize_t
Definition CSocketHelper.h:55
Definition CAudioBuffer.cpp:57
void cSocketClose(int &a_socket)
This function closes a TCP or UDP socket.
Definition CSocketHelper.cpp:114
int cSocketInitialize()
This function initializes a TCP or UDP socket.
Definition CSocketHelper.cpp:62
double cSocketGetTimeout(int a_socket)
This function retrieves the timeout associated with a TCP or UDP socket.
Definition CSocketHelper.cpp:200
int cSocketSetTimeout(int a_socket, double a_timeout)
This function sets the timeout associated with a TCP or UDP socket.
Definition CSocketHelper.cpp:169
void cSocketCleanup()
This function clears all flags on a TCP or UDP socket.
Definition CSocketHelper.cpp:133
int cSocketGetLocalIP(int a_index, sockaddr_in *a_sin)
This function retrieves the local IP address.
Definition CSocketHelper.cpp:232
int cSocketBlock(int a_socket, bool a_block)
This function configures a TCP or UDP socket blocking mode.
Definition CSocketHelper.cpp:95