aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp.h')
-rw-r--r--src/tcp.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/tcp.h b/src/tcp.h
index f4319f3..82b88a9 100644
--- a/src/tcp.h
+++ b/src/tcp.h
@@ -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
18void tcp_open(lua_State *L); 33void tcp_open(lua_State *L);
19 34
20#endif 35#endif /* TCP_H */