source: vendor/emx/current/src/os2/tcpip.h

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

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