reactos/rosapps/applications/net/ncftp/sio/SConnectByName.c
Aleksey Bragin 2012315e5a - Start rosapps rearrange and cleanup process.
svn path=/trunk/; revision=34303
2008-07-05 11:46:22 +00:00

13 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 */