aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-25 16:00:51 -0700
committerE. Westbrook <github@westbrook.io>2019-02-25 16:00:51 -0700
commit525d703e16c1f557b95f742f7d2681ad6815f92f (patch)
tree824d1e68704b1ecda593f4c92e325eba10d42b87 /src
parent898f2df025a3bcc9b1639f64d407fba0ac9acefc (diff)
downloadluasocket-525d703e16c1f557b95f742f7d2681ad6815f92f.tar.gz
luasocket-525d703e16c1f557b95f742f7d2681ad6815f92f.tar.bz2
luasocket-525d703e16c1f557b95f742f7d2681ad6815f92f.zip
tcp.c: use LUASOCKET_PRIVATE
Diffstat (limited to 'src')
-rw-r--r--src/tcp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tcp.c b/src/tcp.c
index c7384b4..cc5b6a7 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -2,18 +2,21 @@
2* TCP object 2* TCP object
3* LuaSocket toolkit 3* LuaSocket toolkit
4\*=========================================================================*/ 4\*=========================================================================*/
5#include <string.h> 5#include "luasocket.h"
6 6
7#include "lua.h" 7#include "lua.h"
8#include "lauxlib.h" 8#include "lauxlib.h"
9#include "compat.h"
10 9
10#include "compat.h"
11#include "auxiliar.h" 11#include "auxiliar.h"
12
12#include "socket.h" 13#include "socket.h"
13#include "inet.h" 14#include "inet.h"
14#include "options.h" 15#include "options.h"
15#include "tcp.h" 16#include "tcp.h"
16 17
18#include <string.h>
19
17/*=========================================================================*\ 20/*=========================================================================*\
18* Internal function prototypes 21* Internal function prototypes
19\*=========================================================================*/ 22\*=========================================================================*/
@@ -126,7 +129,7 @@ static luaL_Reg func[] = {
126/*-------------------------------------------------------------------------*\ 129/*-------------------------------------------------------------------------*\
127* Initializes module 130* Initializes module
128\*-------------------------------------------------------------------------*/ 131\*-------------------------------------------------------------------------*/
129int tcp_open(lua_State *L) 132LUASOCKET_PRIVATE int tcp_open(lua_State *L)
130{ 133{
131 /* create classes */ 134 /* create classes */
132 auxiliar_newclass(L, "tcp{master}", tcp_methods); 135 auxiliar_newclass(L, "tcp{master}", tcp_methods);