installed

This commit is contained in:
Jeff Hill
1998-06-16 02:12:05 +00:00
parent 644320cbc3
commit f9e6130f17
2 changed files with 63 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
#include "osiSock.h"
#include "shareLib.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* convert IP address to ASCII in this order
* 1) look for matching host name
* 2) convert to traditional dotted IP address (with trailing port)
*/
epicsShareFunc void epicsShareAPI ipAddrToA
(const struct sockaddr_in *pInetAddr, char *pBuf, unsigned bufSize);
/*
* attempt to convert ASCII string to an IP address in this order
* 1) look for traditional doted ip with optional port
* 2) look for raw number form of ip address with optional port
* 3) look for valid host name with optional port
*/
epicsShareFunc int epicsShareAPI aToIPAddr
(const char *pAddrString, unsigned short defaultPort, struct sockaddr_in *pIP);
/*
* attempt to convert ASCII host name string with optional port to an IP address
*/
epicsShareFunc int epicsShareAPI hostToIPAddr
(const char *pHostName, struct in_addr *pIPA);
/*
* attach to BSD socket library
*/
epicsShareFunc int epicsShareAPI bsdSockAttach(); /* returns T if success, else F */
/*
* release BSD socket library
*/
epicsShareFunc void epicsShareAPI bsdSockRelease();
#ifdef _WIN32
epicsShareFunc const char * epicsShareAPI getLastWSAErrorAsString();
epicsShareFunc unsigned epicsShareAPI wsaMajorVersion();
#endif
#ifdef __cplusplus
}
#endif
+15
View File
@@ -0,0 +1,15 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "shareLib.h"
/*
* needs to be consolodated with other os independent stuff ...
*/
epicsShareFunc void epicsShareAPI osiSleep (unsigned sec, unsigned uSec);
#ifdef __cplusplus
}
#endif