comparison src/usocket.h @ 0:4b915342e2a8

LuaSocket 2.0.2 + CMake build description.
author Eric Wing <ewing . public |-at-| gmail . com>
date Tue, 26 Aug 2008 18:40:01 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4b915342e2a8
1 #ifndef USOCKET_H
2 #define USOCKET_H
3 /*=========================================================================*\
4 * Socket compatibilization module for Unix
5 * LuaSocket toolkit
6 *
7 * RCS ID: $Id: usocket.h,v 1.7 2005/10/07 04:40:59 diego Exp $
8 \*=========================================================================*/
9
10 /*=========================================================================*\
11 * BSD include files
12 \*=========================================================================*/
13 /* error codes */
14 #include <errno.h>
15 /* close function */
16 #include <unistd.h>
17 /* fnctnl function and associated constants */
18 #include <fcntl.h>
19 /* struct sockaddr */
20 #include <sys/types.h>
21 /* socket function */
22 #include <sys/socket.h>
23 /* struct timeval */
24 #include <sys/time.h>
25 /* gethostbyname and gethostbyaddr functions */
26 #include <netdb.h>
27 /* sigpipe handling */
28 #include <signal.h>
29 /* IP stuff*/
30 #include <netinet/in.h>
31 #include <arpa/inet.h>
32 /* TCP options (nagle algorithm disable) */
33 #include <netinet/tcp.h>
34
35 typedef int t_socket;
36 typedef t_socket *p_socket;
37
38 #define SOCKET_INVALID (-1)
39
40 #endif /* USOCKET_H */