home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ncftp.com
/
ftp.ncftp.com.zip
/
ftp.ncftp.com
/
libncftp
/
older_versions
/
libncftp-3.1.5-src.tar.gz
/
libncftp-3.1.5-src.tar
/
libncftp-3.1.5
/
sio
/
SConnectByName.c
< prev
next >
Wrap
C/C++ Source or Header
|
2001-11-19
|
341b
|
17 lines
#include "syshdrs.h"
#ifdef PRAGMA_HDRSTOP
# pragma hdrstop
#endif
int
SConnectByName(int sfd, const char * const addrStr, const int tlen)
{
int result;
struct sockaddr_in remoteAddr;
if ((result = AddrStrToAddr(addrStr, &remoteAddr, -1)) == 0) {
result = SConnect(sfd, &remoteAddr, tlen);
}
return (result);
} /* SConnectByName */