ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Windows/router/dynsockets.h
Revision: 1.2
Committed: 2008-01-01T09:40:34Z (16 years, 10 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
Log Message:
Happy New Year!

File Contents

# Content
1 /*
2 * dynsockets.h - ip router
3 *
4 * Basilisk II (C) 1997-2008 Christian Bauer
5 *
6 * Windows platform specific code copyright (C) Lauri Pesonen
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #ifndef _DYNSOCKETS_H_
24 #define _DYNSOCKETS_H_
25
26 bool dynsockets_init(void);
27 void dynsockets_final(void);
28
29 extern int (WSAAPI *_WSAStartup) (WORD, LPWSADATA);
30 extern int (WSAAPI *_WSACleanup) (void);
31 extern int (WSAAPI *_gethostname) (char *, int);
32 extern char * (WSAAPI *_inet_ntoa) (struct in_addr);
33 extern struct hostent * (WSAAPI *_gethostbyname) (const char *);
34 extern int (WSAAPI *_send) (SOCKET, const char *, int, int);
35 extern int (WSAAPI *_sendto) (SOCKET, const char *, int, int, const struct sockaddr *, int);
36 extern int (WSAAPI *_recv) (SOCKET, char *, int, int);
37 extern int (WSAAPI *_recvfrom) (SOCKET, char *, int, int, struct sockaddr *, int *);
38 extern int (WSAAPI *_listen) (SOCKET, int);
39 extern SOCKET (WSAAPI *_accept) (SOCKET, struct sockaddr *, int *);
40 extern SOCKET (WSAAPI *_socket) (int, int, int);
41 extern int (WSAAPI *_bind) (SOCKET, const struct sockaddr *, int);
42 extern int (WSAAPI *_WSAAsyncSelect) (SOCKET, HWND, u_int, long);
43 extern int (WSAAPI *_closesocket) (SOCKET);
44 extern int (WSAAPI *_getsockname) (SOCKET, struct sockaddr *, int *);
45 extern int (WSAAPI *_WSARecvFrom) (SOCKET, LPWSABUF, DWORD, LPDWORD, LPDWORD, struct sockaddr *, LPINT, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
46 extern int (WSAAPI *_WSAGetLastError) (void);
47 extern int (WSAAPI *_WSAConnect) (SOCKET, const struct sockaddr *, int, LPWSABUF, LPWSABUF, LPQOS, LPQOS);
48 extern int (WSAAPI *_setsockopt) (SOCKET, int, int, const char *, int);
49 extern int (WSAAPI *_WSAEventSelect) (SOCKET, WSAEVENT, long);
50 extern WSAEVENT (WSAAPI *_WSACreateEvent) (void);
51 extern BOOL (WSAAPI *_WSACloseEvent) (WSAEVENT);
52 extern BOOL (WSAAPI *_WSAResetEvent) (WSAEVENT);
53 extern int (WSAAPI *_WSAEnumNetworkEvents) (SOCKET, WSAEVENT, LPWSANETWORKEVENTS);
54 extern int (WSAAPI *_shutdown) (SOCKET, int);
55 extern int (WSAAPI *_WSASend) (SOCKET, LPWSABUF, DWORD, LPDWORD, DWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
56 extern int (WSAAPI *_WSARecv) (SOCKET, LPWSABUF, DWORD, LPDWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
57 extern unsigned long (WSAAPI *_inet_addr) (const char *);
58
59 #endif // _DYNSOCKETS_H_