源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

859 lines
20 KiB

//this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class SocketClientWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(SocketClient), typeof(System.Object));
L.RegFunction("OnRegister", OnRegister);
L.RegFunction("OnClose", OnClose);
L.RegFunction("SendConnect", SendConnect);
L.RegFunction("Update", Update);
L.RegFunction("CanOperate", CanOperate);
L.RegFunction("SetIpv6State", SetIpv6State);
L.RegFunction("isSupportIpv6", isSupportIpv6);
L.RegFunction("SendMessage", SendMessage);
L.RegFunction("WriteMutilpleMessage", WriteMutilpleMessage);
L.RegFunction("New", _CreateSocketClient);
L.RegFunction("__tostring", ToLua.op_ToString);
L.RegVar("networkStream", get_networkStream, set_networkStream);
L.RegVar("readStream", get_readStream, set_readStream);
L.RegVar("reader", get_reader, set_reader);
L.RegVar("writeFunc", get_writeFunc, set_writeFunc);
L.RegVar("senting", get_senting, set_senting);
L.RegVar("reading", get_reading, set_reading);
L.RegVar("buffer_list", get_buffer_list, set_buffer_list);
L.RegVar("receive_list", get_receive_list, set_receive_list);
L.RegVar("multipltFmtMode", get_multipltFmtMode, set_multipltFmtMode);
L.RegVar("multiplt_fmt_time", get_multiplt_fmt_time, set_multiplt_fmt_time);
L.RegVar("last_sent_time", get_last_sent_time, set_last_sent_time);
L.RegVar("cache_fmt_all_sent", get_cache_fmt_all_sent, set_cache_fmt_all_sent);
L.RegVar("use_sent_cache_state", get_use_sent_cache_state, set_use_sent_cache_state);
L.RegVar("use_read_cache_state", get_use_read_cache_state, set_use_read_cache_state);
L.RegVar("connect_network_ip", get_connect_network_ip, set_connect_network_ip);
L.RegVar("mUseThread", get_mUseThread, set_mUseThread);
L.RegVar("mConnectState", get_mConnectState, set_mConnectState);
L.EndClass();
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _CreateSocketClient(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 0)
{
SocketClient obj = new SocketClient();
ToLua.PushObject(L, obj);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: SocketClient.New");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int OnRegister(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
obj.OnRegister();
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int OnClose(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
obj.OnClose();
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SendConnect(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
obj.SendConnect();
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int Update(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
obj.Update();
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int CanOperate(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
bool o = obj.CanOperate();
LuaDLL.lua_pushboolean(L, o);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetIpv6State(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 2);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.SetIpv6State(arg0);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int isSupportIpv6(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
bool o = obj.isSupportIpv6();
LuaDLL.lua_pushboolean(L, o);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SendMessage(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 2);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
LuaFramework.ByteBuffer arg0 = (LuaFramework.ByteBuffer)ToLua.CheckObject(L, 2, typeof(LuaFramework.ByteBuffer));
obj.SendMessage(arg0);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int WriteMutilpleMessage(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
obj.WriteMutilpleMessage();
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_networkStream(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.Net.Sockets.NetworkStream ret = obj.networkStream;
ToLua.PushObject(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index networkStream on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_readStream(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.IO.MemoryStream ret = obj.readStream;
ToLua.PushObject(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index readStream on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_reader(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.IO.BinaryReader ret = obj.reader;
ToLua.PushObject(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reader on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_writeFunc(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
uint ret = obj.writeFunc;
LuaDLL.lua_pushnumber(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index writeFunc on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_senting(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.senting;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index senting on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_reading(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.reading;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reading on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_buffer_list(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.Collections.Generic.List<LuaFramework.ByteBuffer> ret = obj.buffer_list;
ToLua.PushObject(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buffer_list on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_receive_list(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.Collections.Generic.List<System.IAsyncResult> ret = obj.receive_list;
ToLua.PushObject(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index receive_list on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_multipltFmtMode(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.multipltFmtMode;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multipltFmtMode on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_multiplt_fmt_time(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
float ret = obj.multiplt_fmt_time;
LuaDLL.lua_pushnumber(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multiplt_fmt_time on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_last_sent_time(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
float ret = obj.last_sent_time;
LuaDLL.lua_pushnumber(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index last_sent_time on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_cache_fmt_all_sent(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.cache_fmt_all_sent;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cache_fmt_all_sent on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_use_sent_cache_state(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.use_sent_cache_state;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_sent_cache_state on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_use_read_cache_state(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.use_read_cache_state;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_read_cache_state on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_connect_network_ip(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
string ret = obj.connect_network_ip;
LuaDLL.lua_pushstring(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index connect_network_ip on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_mUseThread(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.mUseThread;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mUseThread on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_mConnectState(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool ret = obj.mConnectState;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mConnectState on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_networkStream(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.Net.Sockets.NetworkStream arg0 = (System.Net.Sockets.NetworkStream)ToLua.CheckObject(L, 2, typeof(System.Net.Sockets.NetworkStream));
obj.networkStream = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index networkStream on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_readStream(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.IO.MemoryStream arg0 = (System.IO.MemoryStream)ToLua.CheckObject(L, 2, typeof(System.IO.MemoryStream));
obj.readStream = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index readStream on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_reader(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.IO.BinaryReader arg0 = (System.IO.BinaryReader)ToLua.CheckObject(L, 2, typeof(System.IO.BinaryReader));
obj.reader = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reader on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_writeFunc(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
obj.writeFunc = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index writeFunc on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_senting(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.senting = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index senting on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_reading(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.reading = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reading on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_buffer_list(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.Collections.Generic.List<LuaFramework.ByteBuffer> arg0 = (System.Collections.Generic.List<LuaFramework.ByteBuffer>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<LuaFramework.ByteBuffer>));
obj.buffer_list = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buffer_list on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_receive_list(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
System.Collections.Generic.List<System.IAsyncResult> arg0 = (System.Collections.Generic.List<System.IAsyncResult>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<System.IAsyncResult>));
obj.receive_list = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index receive_list on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_multipltFmtMode(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.multipltFmtMode = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multipltFmtMode on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_multiplt_fmt_time(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
obj.multiplt_fmt_time = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multiplt_fmt_time on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_last_sent_time(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
obj.last_sent_time = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index last_sent_time on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_cache_fmt_all_sent(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.cache_fmt_all_sent = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cache_fmt_all_sent on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_use_sent_cache_state(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.use_sent_cache_state = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_sent_cache_state on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_use_read_cache_state(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.use_read_cache_state = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_read_cache_state on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_connect_network_ip(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
string arg0 = ToLua.CheckString(L, 2);
obj.connect_network_ip = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index connect_network_ip on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_mUseThread(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.mUseThread = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mUseThread on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_mConnectState(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
SocketClient obj = (SocketClient)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.mConnectState = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mConnectState on a nil value" : e.Message);
}
}
}