49 char *alist[1], *
host;
59 def.h_addr = (
char *)&defaddr;
66 "finger: unknown host: %s\n",
host);
75 sin.sin_port =
sp->s_port;
94 send(
s,
"\r\n", 2, 0);
109 while (
recv(
s, &
c, 1, 0) == 1) {
119 if (lastc !=
'\r' ||
c !=
'\n')
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
ACPI_SIZE strlen(const char *String)
void netfinger(char *name)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
INT WSAAPI send(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags)
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
int PASCAL FAR WSAGetLastError(void)