Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

rtSocket.h File Reference


Detailed Description

Common runtime constants, data structure definitions, and run-time functions to support TCP/IP or UDP socket operations.#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <arpa/inet.h>
#include "asn1type.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)
#define OSIPADDR_INVALID   ((OSIPADDR)0xffffffffUL)

Typedefs

typedef int OSRTSOCKET
typedef unsigned long OSIPADDR

Functions

int rtSocketAccept (OSRTSOCKET socket, OSRTSOCKET *pNewSocket, OSIPADDR *destAddr, int *destPort)
int rtSocketAddrToStr (OSIPADDR ipAddr, char *pbuf, int bufsize)
int rtSocketBind (OSRTSOCKET socket, OSIPADDR addr, int port)
int rtSocketBlockingRead (OSRTSOCKET socket, ASN1OCTET *pbuf, size_t readBytes)
int rtSocketClose (OSRTSOCKET socket)
int rtSocketConnect (OSRTSOCKET socket, const char *host, int port)
int rtSocketCreate (OSRTSOCKET *psocket)
int rtSocketCreateUDP (OSRTSOCKET *psocket)
int rtSocketsInit (void)
int rtSocketsCleanup (void)
int rtSocketListen (OSRTSOCKET socket, int maxConnection)
int rtSocketRecv (OSRTSOCKET socket, ASN1OCTET *pbuf, ASN1UINT bufsize)
int rtSocketRecvFrom (OSRTSOCKET socket, ASN1OCTET *pbuf, ASN1UINT bufsize, char *remotehost, int *remoteport)
int rtSocketSend (OSRTSOCKET socket, const ASN1OCTET *pdata, ASN1UINT size)
int rtSocketSendTo (OSRTSOCKET socket, const ASN1OCTET *pdata, ASN1UINT size, const char *remotehost, int remoteport)
int rtSocketSelect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
int rtSocketStrToAddr (const char *pIPAddrStr, OSIPADDR *pIPAddr)
int rtSocketGetLocalIPAddress (char *pIPAddrs, int bufSize)


Typedef Documentation

typedef unsigned long OSIPADDR
 

The IP address represented as unsigned long value. The most significant 8 bits in this unsigned long value represent the first number of the IP address. The least significant 8 bits represent the last number of the IP address.

typedef int OSRTSOCKET
 

Socket handle


Copyright © 1997-2004 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 1 Oct 2004.
ASN1C C/C++ Common Runtime, ASN1C v5.7x