#include <string.h>
#include <stdio.h>
#include <hostLib.h>
#include <inetLib.h>
#include "errlog.h"
#include "osiSock.h"
Go to the source code of this file.
#define _VSB_CONFIG_FILE <../lib/h/config/vsbConfig.h> |
LIBCOM_API int epicsStdCall epicsSocketAccept |
( |
int |
sock, |
|
|
struct sockaddr * |
pAddr, |
|
|
osiSocklen_t * |
addrlen |
|
) |
| |
Definition at line 46 of file osdSock.c.
49 int newSock = accept ( sock, pAddr, addrlen );
LIBCOM_API SOCKET epicsStdCall epicsSocketCreate |
( |
int |
domain, |
|
|
int |
type, |
|
|
int |
protocol |
|
) |
| |
Definition at line 36 of file osdSock.c.
39 SOCKET sock = socket ( domain,
type, protocol );
pvd::StructureConstPtr type
LIBCOM_API void epicsStdCall epicsSocketDestroy |
( |
SOCKET |
s | ) |
|
Definition at line 56 of file osdSock.c.
63 "epicsSocketDestroy: failed to " 64 "close a socket because \"%s\"\n",
void epicsSocketConvertErrnoToString(char *pBuf, unsigned bufSize)
int errlogPrintf(const char *pFormat,...)
LIBCOM_API int epicsStdCall hostToIPAddr |
( |
const char * |
pHostName, |
|
|
struct in_addr * |
pIPA |
|
) |
| |
Definition at line 115 of file osdSock.c.
117 int addr = hostGetByName ( (
char *) pHostName );
118 if ( addr == ERROR ) {
121 pIPA->s_addr = (
unsigned long) addr;
LIBCOM_API unsigned epicsStdCall ipAddrToHostName |
( |
const struct in_addr * |
pAddr, |
|
|
char * |
pBuf, |
|
|
unsigned |
bufSize |
|
) |
| |
Definition at line 73 of file osdSock.c.
76 int errnoCopy = errno;
84 status = hostGetByAddr ((
int)pAddr->s_addr, pBuf);
95 status = hostGetByAddr (pAddr->s_addr, name);
97 strncpy (pBuf, name, bufSize);
98 pBuf[bufSize-1] =
'\0';
int osiSockAttach |
( |
void |
| ) |
|
void osiSockRelease |
( |
void |
| ) |
|