Go to the source code of this file.
◆ netfinger()
Definition at line 40 of file net.c.
41{
49 char *alist[1], *
host;
50
51
53 return;
54
59 def.h_addr = (char *)&defaddr;
63 hp = &def;
66 "finger: unknown host: %s\n",
host);
67 return;
68 }
71 return;
72 }
75 sin.sin_port =
sp->s_port;
78 return;
79 }
80
81
86 return;
87 }
88
89
92
94 send(
s,
"\r\n", 2, 0);
95
96
97
98
99
100
101
102
103
104
105
106
107
108 lastc = 0;
109 while (
recv(
s, &
c, 1, 0) == 1) {
112 if (lastc == '\r')
113 continue;
115 lastc = '\r';
116 } else {
119 if (lastc !=
'\r' ||
c !=
'\n')
121 else {
122 lastc = '\n';
123 continue;
124 }
125 }
127 }
128 if (lastc != '\n')
132}
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
ACPI_SIZE strlen(const char *String)
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)
Referenced by userlist().