diff options
Diffstat (limited to 'src/tcp.h')
-rw-r--r-- | src/tcp.h | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,6 +1,21 @@ | |||
1 | #ifndef TCP_H | 1 | #ifndef TCP_H |
2 | #define TCP_H | 2 | #define TCP_H |
3 | 3 | /*=========================================================================*\ | |
4 | * TCP object | ||
5 | * LuaSocket toolkit | ||
6 | * | ||
7 | * The tcp.h module is basicly a glue that puts together modules buffer.h, | ||
8 | * timeout.h socket.h and inet.h to provide the LuaSocket TCP (AF_INET, | ||
9 | * SOCK_STREAM) support. | ||
10 | * | ||
11 | * Three classes are defined: master, client and server. The master class is | ||
12 | * a newly created tcp object, that has not been bound or connected. Server | ||
13 | * objects are tcp objects bound to some local address. Client objects are | ||
14 | * tcp objects either connected to some address or returned by the accept | ||
15 | * method of a server object. | ||
16 | * | ||
17 | * RCS ID: $Id$ | ||
18 | \*=========================================================================*/ | ||
4 | #include <lua.h> | 19 | #include <lua.h> |
5 | 20 | ||
6 | #include "buffer.h" | 21 | #include "buffer.h" |
@@ -17,4 +32,4 @@ typedef t_tcp *p_tcp; | |||
17 | 32 | ||
18 | void tcp_open(lua_State *L); | 33 | void tcp_open(lua_State *L); |
19 | 34 | ||
20 | #endif | 35 | #endif /* TCP_H */ |