From 5c9af043503f92852a1a765b6ecfbc1aea24d2e9 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 14 Aug 2018 14:56:47 +0800 Subject: *update --- src/lua/net/lua_net_Socket.h | 64 -------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 src/lua/net/lua_net_Socket.h (limited to 'src/lua/net/lua_net_Socket.h') diff --git a/src/lua/net/lua_net_Socket.h b/src/lua/net/lua_net_Socket.h deleted file mode 100644 index e02fb5b..0000000 --- a/src/lua/net/lua_net_Socket.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef __JIN_LUA_NET_SOCKET_H -#define __JIN_LUA_NET_SOCKET_H -#include "libjin/jin.h" -#include "../luaopen_types.h" - -namespace jin -{ -namespace lua -{ -namespace net -{ - - class Socket : public jin::net::Socket - , public Object - { - public: - typedef jin::net::SocketInformation SocketInformation; - typedef jin::net::SocketType SocketType; - - Socket(jin::net::Socket base) - : jin::net::Socket(base) - { - } - - Socket(const SocketInformation& socketInformation) - : jin::net::Socket(socketInformation) - { - } - - Socket(SocketType type, unsigned short port) - : jin::net::Socket(type, port) - { - } - - Socket(SocketType type, unsigned int address, unsigned short port) - : jin::net::Socket(type, address) - { - } - - Socket(SocketType type, const char* address, unsigned short port) - : jin::net::Socket(type, address, port) - { - } - - Socket * accept() - { - jin::net::Socket* base = jin::net::Socket::accept(); - Socket* socket = new Socket(*base); - delete base; - return socket; - } - - private: - ~Socket() - { - } - - }; - -} -} -} - -#endif \ No newline at end of file -- cgit v1.1-26-g67d0