reactos/rosapps/net/ncftp/sio/SConnectByName.c
Steven Edwards 86bda6b3d9 Added ncftp to rosapps
svn path=/trunk/; revision=2453
2001-12-30 06:31:25 +00:00

14 lines
295 B
C

#include "syshdrs.h"
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 */