1 /* NETDB.H |
1 /* NETDB.H |
2 * |
2 * |
3 * Portions copyright (c) 1993-1999 Symbian Ltd. All rights reserved. |
3 * Portions Copyright (c) 1993-1999 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
4 */ |
5 */ |
5 |
6 |
6 /*- |
7 /*- |
7 * Copyright (c) 1980, 1983, 1988, 1993 |
8 * Copyright (c) 1980, 1983, 1988, 1993 |
8 * The Regents of the University of California. All rights reserved. |
9 * The Regents of the University of California. All rights reserved. |
126 #define TRY_AGAIN ETIMEDOUT /* Non-Authoritative Host not found, or SERVERFAIL */ |
127 #define TRY_AGAIN ETIMEDOUT /* Non-Authoritative Host not found, or SERVERFAIL */ |
127 #define NO_RECOVERY ECOMM /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */ |
128 #define NO_RECOVERY ECOMM /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */ |
128 #define NO_DATA 4 /* Valid name, no data record of requested type */ |
129 #define NO_DATA 4 /* Valid name, no data record of requested type */ |
129 #define NO_ADDRESS NO_DATA /* no address, look for MX record */ |
130 #define NO_ADDRESS NO_DATA /* no address, look for MX record */ |
130 |
131 |
131 #if 0 |
|
132 /* not supported on EPOC32 */ |
|
133 /** |
|
134 @internalComponent |
|
135 */ |
|
136 void sethostent (int); |
|
137 /** |
|
138 @internalComponent |
|
139 */ |
|
140 struct hostent *gethostent (void); |
|
141 /** |
|
142 @internalComponent |
|
143 */ |
|
144 void endhostent (void); |
|
145 /** |
|
146 @internalComponent |
|
147 */ |
|
148 void setnetent (int); |
|
149 /** |
|
150 @internalComponent |
|
151 */ |
|
152 struct netent *getnetent (void); |
|
153 /** |
|
154 @internalComponent |
|
155 */ |
|
156 void endnetent (void); |
|
157 /** |
|
158 @internalComponent |
|
159 */ |
|
160 void setprotoent (int); |
|
161 /** |
|
162 @internalComponent |
|
163 */ |
|
164 struct protoent *getprotoent (void); |
|
165 /** |
|
166 @internalComponent |
|
167 */ |
|
168 void endprotoent (void); |
|
169 /** |
|
170 @internalComponent |
|
171 */ |
|
172 void setservent (int); |
|
173 /** |
|
174 @internalComponent |
|
175 */ |
|
176 struct servent *getservent (void); |
|
177 /** |
|
178 @internalComponent |
|
179 */ |
|
180 void endservent (void); |
|
181 #endif |
|
182 |
|
183 IMPORT_C struct hostent *gethostbyaddr (const char *, int, int); |
132 IMPORT_C struct hostent *gethostbyaddr (const char *, int, int); |
184 IMPORT_C struct hostent *gethostbyname (const char *); |
133 IMPORT_C struct hostent *gethostbyname (const char *); |
185 struct servent *getservbyname (const char *, const char *); |
134 struct servent *getservbyname (const char *, const char *); |
186 struct servent *getservbyport (int, const char *); |
135 struct servent *getservbyport (int, const char *); |
187 struct netent *getnetbyaddr (unsigned long, int); |
136 struct netent *getnetbyaddr (unsigned long, int); |