mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
86bda6b3d9
svn path=/trunk/; revision=2453
13 lines
295 B
C
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 */
|