Example #1
0
 static int BufferSize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
         int          o   = obj.BufferSize();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }