diff options
Diffstat (limited to 'src/lua/net/luaopen_net.cpp')
-rw-r--r-- | src/lua/net/luaopen_net.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/lua/net/luaopen_net.cpp b/src/lua/net/luaopen_net.cpp index 89a79f3..28313ce 100644 --- a/src/lua/net/luaopen_net.cpp +++ b/src/lua/net/luaopen_net.cpp @@ -2,13 +2,13 @@ #include "libjin/jin.h" #include "../luaopen_types.h" #include "lua_net_Buffer.h" +#include "lua_net_Socket.h" namespace jin { namespace lua { - - using namespace jin::net; + using namespace jin::lua::net; static int l_initNetwork(lua_State* L) { @@ -16,15 +16,6 @@ namespace lua return 1; } - // jin.net.toSocket(lightuserdata) - static int l_toSocket(lua_State*L) - { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_NETWORK_SOCKET); - //Proxy * socketProxy = (Proxy*)luax_newinstance(L, JIN_NETWORK_SOCKET, sizeof(Proxy)); - - return 1; - } - // jin.net.Socket() static int l_Socket(lua_State* L) { @@ -71,7 +62,6 @@ namespace lua static const luaL_Reg f[] = { { "init", l_initNetwork }, - { "toSocket", l_toSocket }, { "Socket", l_Socket }, { "Buffer", l_Buffer }, { 0, 0 } |