aboutsummaryrefslogtreecommitdiff
path: root/src/usocket.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-26 18:47:49 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-26 18:47:49 +0000
commit71f6bb60bf2b7457091c7106190f92ab7e51f7c6 (patch)
tree8ad3668667bd3da3c34f7ff7ae0a9a7a4daa4679 /src/usocket.h
parentf330540576031528f0daac231c61d4dd06e8ba1e (diff)
downloadluasocket-71f6bb60bf2b7457091c7106190f92ab7e51f7c6.tar.gz
luasocket-71f6bb60bf2b7457091c7106190f92ab7e51f7c6.tar.bz2
luasocket-71f6bb60bf2b7457091c7106190f92ab7e51f7c6.zip
Finished implementation of LuaSocket 2.0 alpha on Linux.
Some testing still needed.
Diffstat (limited to 'src/usocket.h')
-rw-r--r--src/usocket.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usocket.h b/src/usocket.h
index 034ae74..85b7caa 100644
--- a/src/usocket.h
+++ b/src/usocket.h
@@ -1,10 +1,11 @@
1#ifndef USOCKET_H
2#define USOCKET_H
1/*=========================================================================*\ 3/*=========================================================================*\
2* Socket compatibilization module for Unix 4* Socket compatibilization module for Unix
5* LuaSocket toolkit
3* 6*
4* RCS ID: $Id$ 7* RCS ID: $Id$
5\*=========================================================================*/ 8\*=========================================================================*/
6#ifndef USOCKET_H
7#define USOCKET_H
8 9
9/*=========================================================================*\ 10/*=========================================================================*\
10* BSD include files 11* BSD include files
@@ -30,9 +31,11 @@
30/* IP stuff*/ 31/* IP stuff*/
31#include <netinet/in.h> 32#include <netinet/in.h>
32#include <arpa/inet.h> 33#include <arpa/inet.h>
34/* TCP options (nagle algorithm disable) */
35#include <netinet/tcp.h>
33 36
34#ifdef __APPLE__ 37#ifdef __APPLE__
35/* for some reason socklen_t is not defined in mac os x */ 38/* for some reason socklen_t is not defined in Mac Os X */
36typedef int socklen_t; 39typedef int socklen_t;
37#endif 40#endif
38 41