aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
new file mode 100644
index 00000000..81030fc7
--- /dev/null
+++ b/src/socket.h
@@ -0,0 +1,51 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * date: Sat Mar 30 14:44:42 GMT 2002
10 *
11 *
12 * --
13 *
14 */
15
16#ifndef _SOCKET_H_
17#define _SOCKET_H_
18
19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <stdio.h>
24#include <stdarg.h>
25
26#ifdef WIN32
27#include <winsock2.h>
28#include <io.h>
29#else
30#include <sys/socket.h>
31#include <netinet/in.h>
32#include <arpa/inet.h>
33#include <unistd.h>
34#include <sys/time.h> // struct tv
35#include <sys/types.h> // freebsd need it i gues that is no problem if other system includes it
36#endif
37
38
39
40
41
42#include "debug.h"
43
44extern int errno;
45
46int __ILWS_newdata(int);
47int __ILWS_listensocket(short, int);
48int __ILWS_read(int,void *,size_t);
49
50#endif
51