| 1 | /* tcpip.h -- Interface to tcpip.c
|
|---|
| 2 | Copyright (c) 1994-1996 by Eberhard Mattes
|
|---|
| 3 |
|
|---|
| 4 | This file is part of emx.
|
|---|
| 5 |
|
|---|
| 6 | emx is free software; you can redistribute it and/or modify it
|
|---|
| 7 | under the terms of the GNU General Public License as published by
|
|---|
| 8 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 9 | any later version.
|
|---|
| 10 |
|
|---|
| 11 | emx is distributed in the hope that it will be useful,
|
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | GNU General Public License for more details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with emx; see the file COPYING. If not, write to
|
|---|
| 18 | the Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 19 | Boston, MA 02111-1307, USA.
|
|---|
| 20 |
|
|---|
| 21 | As special exception, emx.dll can be distributed without source code
|
|---|
| 22 | unless it has been changed. If you modify emx.dll, this exception
|
|---|
| 23 | no longer applies and you must remove this paragraph from all source
|
|---|
| 24 | files for emx.dll. */
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | struct select_data;
|
|---|
| 28 | struct _recvfrom;
|
|---|
| 29 | struct _sendto;
|
|---|
| 30 |
|
|---|
| 31 | int tcpip_accept (ULONG handle, void *addr, int *paddrlen, int *errnop);
|
|---|
| 32 | int tcpip_bind (ULONG handle, void *addr, int addrlen);
|
|---|
| 33 | int tcpip_close (ULONG handle);
|
|---|
| 34 | int tcpip_connect (ULONG handle, void *addr, int addrlen);
|
|---|
| 35 | int tcpip_dup (ULONG handle, ULONG target, int *errnop);
|
|---|
| 36 | int tcpip_fcntl (ULONG handle, ULONG request, ULONG arg, int *errnop);
|
|---|
| 37 | int tcpip_fstat (ULONG handle, struct stat *dst, int *errnop);
|
|---|
| 38 | int tcpip_gethostbyaddr (const char *addr, int len, int type, void **dst);
|
|---|
| 39 | int tcpip_gethostbyname (const char *name, void **dst);
|
|---|
| 40 | int tcpip_gethostid (int *dst);
|
|---|
| 41 | int tcpip_gethostname (char *name, int len);
|
|---|
| 42 | int tcpip_getnetbyaddr (long net, void **dst);
|
|---|
| 43 | int tcpip_getnetbyname (const char *name, void **dst);
|
|---|
| 44 | int tcpip_getpeername (ULONG handle, void *addr, int *paddrlen);
|
|---|
| 45 | int tcpip_getprotobyname (const char *name, void **dst);
|
|---|
| 46 | int tcpip_getprotobynumber (int proto, void **dst);
|
|---|
| 47 | int tcpip_getservbyname (const char *name, const char *proto, void **dst);
|
|---|
| 48 | int tcpip_getservbyport (int port, const char *proto, void **dst);
|
|---|
| 49 | int tcpip_getsockhandle (ULONG handle, int *errnop);
|
|---|
| 50 | int tcpip_getsockname (ULONG handle, void *addr, int *paddrlen);
|
|---|
| 51 | int tcpip_getsockopt (ULONG handle, int level, int optname, void *optval,
|
|---|
| 52 | int *poptlen);
|
|---|
| 53 | int tcpip_ioctl (ULONG handle, ULONG request, ULONG arg, int *errnop);
|
|---|
| 54 | int tcpip_listen (ULONG handle, int backlog);
|
|---|
| 55 | int tcpip_read (ULONG handle, void *buf, ULONG len, int *errnop);
|
|---|
| 56 | int tcpip_recv (ULONG handle, void *buf, int len, unsigned flags, int *errnop);
|
|---|
| 57 | int tcpip_recvfrom (const struct _recvfrom *args, int *errnop);
|
|---|
| 58 | int tcpip_select_poll (struct select_data *d, int *errnop);
|
|---|
| 59 | int tcpip_send (ULONG handle, const void *buf, int len, unsigned flags,
|
|---|
| 60 | int *errnop);
|
|---|
| 61 | int tcpip_sendto (const struct _sendto *args, int *errnop);
|
|---|
| 62 | int tcpip_setsockopt (ULONG handle, int level, int optname, const void *optval,
|
|---|
| 63 | int optlen);
|
|---|
| 64 | int tcpip_socket (int domain, int type, int protocol, int *errnop);
|
|---|
| 65 | int tcpip_shutdown (ULONG handle, int how);
|
|---|
| 66 | int tcpip_write (ULONG handle, const void *buf, ULONG len, int *errnop);
|
|---|
| 67 | int tcpip_impsockhandle (ULONG handle, ULONG flags, int *errnop);
|
|---|