home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ncftp.com
/
ftp.ncftp.com.zip
/
ftp.ncftp.com
/
libncftp
/
older_versions
/
libncftp-3.2.2-src.tar.bz2
/
libncftp-3.2.2-src.tar
/
libncftp-3.2.2
/
sio
/
UConnect.c
< prev
next >
Wrap
C/C++ Source or Header
|
2003-08-31
|
476b
|
21 lines
#include "syshdrs.h"
#ifdef PRAGMA_HDRSTOP
# pragma hdrstop
#endif
extern int _SConnect(const int sfd, const struct sockaddr_in *const addr, const size_t saddrsiz, const int tlen);
int
UConnect(int sfd, const struct sockaddr_un *const addr, int ualen, int tlen)
{
int result;
if ((addr == NULL) || (ualen == 0)) {
errno = EINVAL;
return (-1);
}
result = _SConnect(sfd, (const struct sockaddr_in *) addr, (size_t) ualen, tlen);
return (result);
} /* UConnect */