rtxSocket.h File Reference
#include "rtxsrc/osSysTypes.h"#include "rtxsrc/rtxExternDefs.h"Go to the source code of this file.
Defines | |
| #define | OSRTSOCKET_INVALID ((OSRTSOCKET)-1) |
| #define | OSIPADDR_ANY ((OSIPADDR)0) |
| #define | OSIPADDR_LOCAL ((OSIPADDR)0x7f000001UL) |
Typedefs | |
| typedef int | OSRTSOCKET |
| socket handle | |
| typedef unsigned long | OSIPADDR |
| The IP address represented as unsigned long value. | |
Functions | |
| int | rtxSocketAccept (OSRTSOCKET socket, OSRTSOCKET *pNewSocket, OSIPADDR *destAddr, int *destPort) |
| This function permits an incoming connection attempt on a socket. | |
| int | rtxSocketAddrToStr (OSIPADDR ipAddr, char *pbuf, size_t bufsize) |
| This function converts an IP address to its string representation. | |
| int | rtxSocketBind (OSRTSOCKET socket, OSIPADDR addr, int port) |
| This function associates a local address with a socket. | |
| int | rtxSocketClose (OSRTSOCKET socket) |
| This function closes an existing socket. | |
| int | rtxSocketConnect (OSRTSOCKET socket, const char *host, int port) |
| This function establishes a connection to a specified socket. | |
| int | rtxSocketCreate (OSRTSOCKET *psocket) |
| This function creates a socket. | |
| int | rtxSocketGetHost (const char *host, struct in_addr *inaddr) |
| This function resolves the given host name to an IP address. | |
| int | rtxSocketsInit () |
| This function initiates use of sockets by an application. | |
| int | rtxSocketListen (OSRTSOCKET socket, int maxConnection) |
| This function places a socket a state where it is listening for an incoming connection. | |
| int | rtxSocketParseURL (char *url, char **protocol, char **address, int *port) |
| This function parses a simple URL of the form <protocol>://<address>:<port> into its individual components. | |
| int | rtxSocketRecv (OSRTSOCKET socket, OSOCTET *pbuf, int bufsize) |
| This function receives data from a connected socket. | |
| int | rtxSocketSend (OSRTSOCKET socket, const OSOCTET *pdata, int size) |
| This function sends data on a connected socket. | |
| int | rtxSocketStrToAddr (const char *pIPAddrStr, OSIPADDR *pIPAddr) |
| This function converts the string with IP address to a double word representation. | |
Detailed Description
Definition in file rtxSocket.h.
