35 #elif defined(_WIN32) || defined(_WIN64) 36 #include <sys/types.h> 37 #define INCL_WINSOCK_API_TYPEDEFS 1 38 #define INCL_WINSOCK_API_PROTOTYPES 0 43 #include <sys/types.h> 45 #include <sys/socket.h> 46 #include <netinet/in.h> 49 #include <arpa/inet.h> 52 #include "rtxsrc/osSysTypes.h" 53 #include "rtxsrc/rtxExternDefs.h" 62 #if (defined (_WIN32) || defined (_WIN64)) && !defined(__SYMBIAN32__) 68 #define OSRTSOCKET_INVALID ((OSRTSOCKET)-1) 82 #define OSIPADDR_ANY ((OSIPADDR)0) 83 #define OSIPADDR_LOCAL ((OSIPADDR)0x7f000001UL) 106 EXTERNRT
int rtxSocketAccept (OSRTSOCKET socket, OSRTSOCKET *pNewSocket,
107 OSIPADDR* destAddr,
int* destPort);
134 EXTERNRT
int rtxSocketBind (OSRTSOCKET socket, OSIPADDR addr,
int port);
161 EXTERNRT
int rtxSocketConnect (OSRTSOCKET socket,
const char* host,
int port);
180 (OSRTSOCKET socket,
const char* host,
int port,
int nsecs);
199 EXTERNRT
int rtxSocketCreateUDP (OSRTSOCKET *psocket);
254 (
char* url,
char** protocol,
char** address,
int* port);
268 EXTERNRT
int rtxSocketRecv (OSRTSOCKET socket, OSOCTET* pbuf,
size_t bufsize);
287 (OSRTSOCKET socket, OSOCTET* pbuf,
size_t bufsize, OSUINT32 secs);
306 EXTERNRT
int rtxSocketSelect (
int nfds, fd_set* readfds, fd_set* writefds,
307 fd_set* exceptfds,
struct timeval* timeout);
322 (OSRTSOCKET socket,
const OSOCTET* pdata,
size_t size);
int rtxSocketSend(OSRTSOCKET socket, const OSOCTET *pdata, size_t size)
int rtxSocketsInit(OSVOIDARG)
int OSRTSOCKET
Definition: rtxSocket.h:65
int rtxSocketClose(OSRTSOCKET socket)
int rtxSocketParseURL(char *url, char **protocol, char **address, int *port)
int rtxSocketConnectTimed(OSRTSOCKET socket, const char *host, int port, int nsecs)
int rtxSocketSelect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
int rtxSocketBind(OSRTSOCKET socket, OSIPADDR addr, int port)
int rtxSocketAccept(OSRTSOCKET socket, OSRTSOCKET *pNewSocket, OSIPADDR *destAddr, int *destPort)
int rtxSocketAddrToStr(OSIPADDR ipAddr, char *pbuf, size_t bufsize)
int rtxSocketSetBlocking(OSRTSOCKET socket, OSBOOL value)
int rtxSocketCreate(OSRTSOCKET *psocket)
int rtxSocketRecvTimed(OSRTSOCKET socket, OSOCTET *pbuf, size_t bufsize, OSUINT32 secs)
int rtxSocketRecv(OSRTSOCKET socket, OSOCTET *pbuf, size_t bufsize)
int rtxSocketListen(OSRTSOCKET socket, int maxConnection)
int rtxSocketGetHost(const char *host, struct in_addr *inaddr)
int rtxSocketConnect(OSRTSOCKET socket, const char *host, int port)
unsigned long OSIPADDR
Definition: rtxSocket.h:80
int rtxSocketStrToAddr(const char *pIPAddrStr, OSIPADDR *pIPAddr)