源战役客户端
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

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class SocketClientWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(SocketClient), typeof(System.Object));
  9. L.RegFunction("OnRegister", OnRegister);
  10. L.RegFunction("OnClose", OnClose);
  11. L.RegFunction("SendConnect", SendConnect);
  12. L.RegFunction("Update", Update);
  13. L.RegFunction("CanOperate", CanOperate);
  14. L.RegFunction("SetIpv6State", SetIpv6State);
  15. L.RegFunction("isSupportIpv6", isSupportIpv6);
  16. L.RegFunction("SendMessage", SendMessage);
  17. L.RegFunction("WriteMutilpleMessage", WriteMutilpleMessage);
  18. L.RegFunction("New", _CreateSocketClient);
  19. L.RegFunction("__tostring", ToLua.op_ToString);
  20. L.RegVar("networkStream", get_networkStream, set_networkStream);
  21. L.RegVar("readStream", get_readStream, set_readStream);
  22. L.RegVar("reader", get_reader, set_reader);
  23. L.RegVar("writeFunc", get_writeFunc, set_writeFunc);
  24. L.RegVar("senting", get_senting, set_senting);
  25. L.RegVar("reading", get_reading, set_reading);
  26. L.RegVar("buffer_list", get_buffer_list, set_buffer_list);
  27. L.RegVar("receive_list", get_receive_list, set_receive_list);
  28. L.RegVar("multipltFmtMode", get_multipltFmtMode, set_multipltFmtMode);
  29. L.RegVar("multiplt_fmt_time", get_multiplt_fmt_time, set_multiplt_fmt_time);
  30. L.RegVar("last_sent_time", get_last_sent_time, set_last_sent_time);
  31. L.RegVar("cache_fmt_all_sent", get_cache_fmt_all_sent, set_cache_fmt_all_sent);
  32. L.RegVar("use_sent_cache_state", get_use_sent_cache_state, set_use_sent_cache_state);
  33. L.RegVar("use_read_cache_state", get_use_read_cache_state, set_use_read_cache_state);
  34. L.RegVar("connect_network_ip", get_connect_network_ip, set_connect_network_ip);
  35. L.RegVar("mUseThread", get_mUseThread, set_mUseThread);
  36. L.RegVar("mConnectState", get_mConnectState, set_mConnectState);
  37. L.EndClass();
  38. }
  39. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  40. static int _CreateSocketClient(IntPtr L)
  41. {
  42. try
  43. {
  44. int count = LuaDLL.lua_gettop(L);
  45. if (count == 0)
  46. {
  47. SocketClient obj = new SocketClient();
  48. ToLua.PushObject(L, obj);
  49. return 1;
  50. }
  51. else
  52. {
  53. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: SocketClient.New");
  54. }
  55. }
  56. catch(Exception e)
  57. {
  58. return LuaDLL.toluaL_exception(L, e);
  59. }
  60. }
  61. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  62. static int OnRegister(IntPtr L)
  63. {
  64. try
  65. {
  66. ToLua.CheckArgsCount(L, 1);
  67. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  68. obj.OnRegister();
  69. return 0;
  70. }
  71. catch(Exception e)
  72. {
  73. return LuaDLL.toluaL_exception(L, e);
  74. }
  75. }
  76. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  77. static int OnClose(IntPtr L)
  78. {
  79. try
  80. {
  81. ToLua.CheckArgsCount(L, 1);
  82. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  83. obj.OnClose();
  84. return 0;
  85. }
  86. catch(Exception e)
  87. {
  88. return LuaDLL.toluaL_exception(L, e);
  89. }
  90. }
  91. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  92. static int SendConnect(IntPtr L)
  93. {
  94. try
  95. {
  96. ToLua.CheckArgsCount(L, 1);
  97. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  98. obj.SendConnect();
  99. return 0;
  100. }
  101. catch(Exception e)
  102. {
  103. return LuaDLL.toluaL_exception(L, e);
  104. }
  105. }
  106. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  107. static int Update(IntPtr L)
  108. {
  109. try
  110. {
  111. ToLua.CheckArgsCount(L, 1);
  112. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  113. obj.Update();
  114. return 0;
  115. }
  116. catch(Exception e)
  117. {
  118. return LuaDLL.toluaL_exception(L, e);
  119. }
  120. }
  121. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  122. static int CanOperate(IntPtr L)
  123. {
  124. try
  125. {
  126. ToLua.CheckArgsCount(L, 1);
  127. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  128. bool o = obj.CanOperate();
  129. LuaDLL.lua_pushboolean(L, o);
  130. return 1;
  131. }
  132. catch(Exception e)
  133. {
  134. return LuaDLL.toluaL_exception(L, e);
  135. }
  136. }
  137. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  138. static int SetIpv6State(IntPtr L)
  139. {
  140. try
  141. {
  142. ToLua.CheckArgsCount(L, 2);
  143. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  144. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  145. obj.SetIpv6State(arg0);
  146. return 0;
  147. }
  148. catch(Exception e)
  149. {
  150. return LuaDLL.toluaL_exception(L, e);
  151. }
  152. }
  153. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  154. static int isSupportIpv6(IntPtr L)
  155. {
  156. try
  157. {
  158. ToLua.CheckArgsCount(L, 1);
  159. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  160. bool o = obj.isSupportIpv6();
  161. LuaDLL.lua_pushboolean(L, o);
  162. return 1;
  163. }
  164. catch(Exception e)
  165. {
  166. return LuaDLL.toluaL_exception(L, e);
  167. }
  168. }
  169. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  170. static int SendMessage(IntPtr L)
  171. {
  172. try
  173. {
  174. ToLua.CheckArgsCount(L, 2);
  175. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  176. LuaFramework.ByteBuffer arg0 = (LuaFramework.ByteBuffer)ToLua.CheckObject(L, 2, typeof(LuaFramework.ByteBuffer));
  177. obj.SendMessage(arg0);
  178. return 0;
  179. }
  180. catch(Exception e)
  181. {
  182. return LuaDLL.toluaL_exception(L, e);
  183. }
  184. }
  185. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  186. static int WriteMutilpleMessage(IntPtr L)
  187. {
  188. try
  189. {
  190. ToLua.CheckArgsCount(L, 1);
  191. SocketClient obj = (SocketClient)ToLua.CheckObject(L, 1, typeof(SocketClient));
  192. obj.WriteMutilpleMessage();
  193. return 0;
  194. }
  195. catch(Exception e)
  196. {
  197. return LuaDLL.toluaL_exception(L, e);
  198. }
  199. }
  200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  201. static int get_networkStream(IntPtr L)
  202. {
  203. object o = null;
  204. try
  205. {
  206. o = ToLua.ToObject(L, 1);
  207. SocketClient obj = (SocketClient)o;
  208. System.Net.Sockets.NetworkStream ret = obj.networkStream;
  209. ToLua.PushObject(L, ret);
  210. return 1;
  211. }
  212. catch(Exception e)
  213. {
  214. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index networkStream on a nil value" : e.Message);
  215. }
  216. }
  217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  218. static int get_readStream(IntPtr L)
  219. {
  220. object o = null;
  221. try
  222. {
  223. o = ToLua.ToObject(L, 1);
  224. SocketClient obj = (SocketClient)o;
  225. System.IO.MemoryStream ret = obj.readStream;
  226. ToLua.PushObject(L, ret);
  227. return 1;
  228. }
  229. catch(Exception e)
  230. {
  231. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index readStream on a nil value" : e.Message);
  232. }
  233. }
  234. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  235. static int get_reader(IntPtr L)
  236. {
  237. object o = null;
  238. try
  239. {
  240. o = ToLua.ToObject(L, 1);
  241. SocketClient obj = (SocketClient)o;
  242. System.IO.BinaryReader ret = obj.reader;
  243. ToLua.PushObject(L, ret);
  244. return 1;
  245. }
  246. catch(Exception e)
  247. {
  248. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reader on a nil value" : e.Message);
  249. }
  250. }
  251. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  252. static int get_writeFunc(IntPtr L)
  253. {
  254. object o = null;
  255. try
  256. {
  257. o = ToLua.ToObject(L, 1);
  258. SocketClient obj = (SocketClient)o;
  259. uint ret = obj.writeFunc;
  260. LuaDLL.lua_pushnumber(L, ret);
  261. return 1;
  262. }
  263. catch(Exception e)
  264. {
  265. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index writeFunc on a nil value" : e.Message);
  266. }
  267. }
  268. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  269. static int get_senting(IntPtr L)
  270. {
  271. object o = null;
  272. try
  273. {
  274. o = ToLua.ToObject(L, 1);
  275. SocketClient obj = (SocketClient)o;
  276. bool ret = obj.senting;
  277. LuaDLL.lua_pushboolean(L, ret);
  278. return 1;
  279. }
  280. catch(Exception e)
  281. {
  282. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index senting on a nil value" : e.Message);
  283. }
  284. }
  285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  286. static int get_reading(IntPtr L)
  287. {
  288. object o = null;
  289. try
  290. {
  291. o = ToLua.ToObject(L, 1);
  292. SocketClient obj = (SocketClient)o;
  293. bool ret = obj.reading;
  294. LuaDLL.lua_pushboolean(L, ret);
  295. return 1;
  296. }
  297. catch(Exception e)
  298. {
  299. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reading on a nil value" : e.Message);
  300. }
  301. }
  302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  303. static int get_buffer_list(IntPtr L)
  304. {
  305. object o = null;
  306. try
  307. {
  308. o = ToLua.ToObject(L, 1);
  309. SocketClient obj = (SocketClient)o;
  310. System.Collections.Generic.List<LuaFramework.ByteBuffer> ret = obj.buffer_list;
  311. ToLua.PushObject(L, ret);
  312. return 1;
  313. }
  314. catch(Exception e)
  315. {
  316. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buffer_list on a nil value" : e.Message);
  317. }
  318. }
  319. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  320. static int get_receive_list(IntPtr L)
  321. {
  322. object o = null;
  323. try
  324. {
  325. o = ToLua.ToObject(L, 1);
  326. SocketClient obj = (SocketClient)o;
  327. System.Collections.Generic.List<System.IAsyncResult> ret = obj.receive_list;
  328. ToLua.PushObject(L, ret);
  329. return 1;
  330. }
  331. catch(Exception e)
  332. {
  333. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index receive_list on a nil value" : e.Message);
  334. }
  335. }
  336. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  337. static int get_multipltFmtMode(IntPtr L)
  338. {
  339. object o = null;
  340. try
  341. {
  342. o = ToLua.ToObject(L, 1);
  343. SocketClient obj = (SocketClient)o;
  344. bool ret = obj.multipltFmtMode;
  345. LuaDLL.lua_pushboolean(L, ret);
  346. return 1;
  347. }
  348. catch(Exception e)
  349. {
  350. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multipltFmtMode on a nil value" : e.Message);
  351. }
  352. }
  353. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  354. static int get_multiplt_fmt_time(IntPtr L)
  355. {
  356. object o = null;
  357. try
  358. {
  359. o = ToLua.ToObject(L, 1);
  360. SocketClient obj = (SocketClient)o;
  361. float ret = obj.multiplt_fmt_time;
  362. LuaDLL.lua_pushnumber(L, ret);
  363. return 1;
  364. }
  365. catch(Exception e)
  366. {
  367. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multiplt_fmt_time on a nil value" : e.Message);
  368. }
  369. }
  370. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  371. static int get_last_sent_time(IntPtr L)
  372. {
  373. object o = null;
  374. try
  375. {
  376. o = ToLua.ToObject(L, 1);
  377. SocketClient obj = (SocketClient)o;
  378. float ret = obj.last_sent_time;
  379. LuaDLL.lua_pushnumber(L, ret);
  380. return 1;
  381. }
  382. catch(Exception e)
  383. {
  384. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index last_sent_time on a nil value" : e.Message);
  385. }
  386. }
  387. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  388. static int get_cache_fmt_all_sent(IntPtr L)
  389. {
  390. object o = null;
  391. try
  392. {
  393. o = ToLua.ToObject(L, 1);
  394. SocketClient obj = (SocketClient)o;
  395. bool ret = obj.cache_fmt_all_sent;
  396. LuaDLL.lua_pushboolean(L, ret);
  397. return 1;
  398. }
  399. catch(Exception e)
  400. {
  401. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cache_fmt_all_sent on a nil value" : e.Message);
  402. }
  403. }
  404. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  405. static int get_use_sent_cache_state(IntPtr L)
  406. {
  407. object o = null;
  408. try
  409. {
  410. o = ToLua.ToObject(L, 1);
  411. SocketClient obj = (SocketClient)o;
  412. bool ret = obj.use_sent_cache_state;
  413. LuaDLL.lua_pushboolean(L, ret);
  414. return 1;
  415. }
  416. catch(Exception e)
  417. {
  418. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_sent_cache_state on a nil value" : e.Message);
  419. }
  420. }
  421. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  422. static int get_use_read_cache_state(IntPtr L)
  423. {
  424. object o = null;
  425. try
  426. {
  427. o = ToLua.ToObject(L, 1);
  428. SocketClient obj = (SocketClient)o;
  429. bool ret = obj.use_read_cache_state;
  430. LuaDLL.lua_pushboolean(L, ret);
  431. return 1;
  432. }
  433. catch(Exception e)
  434. {
  435. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_read_cache_state on a nil value" : e.Message);
  436. }
  437. }
  438. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  439. static int get_connect_network_ip(IntPtr L)
  440. {
  441. object o = null;
  442. try
  443. {
  444. o = ToLua.ToObject(L, 1);
  445. SocketClient obj = (SocketClient)o;
  446. string ret = obj.connect_network_ip;
  447. LuaDLL.lua_pushstring(L, ret);
  448. return 1;
  449. }
  450. catch(Exception e)
  451. {
  452. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index connect_network_ip on a nil value" : e.Message);
  453. }
  454. }
  455. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  456. static int get_mUseThread(IntPtr L)
  457. {
  458. object o = null;
  459. try
  460. {
  461. o = ToLua.ToObject(L, 1);
  462. SocketClient obj = (SocketClient)o;
  463. bool ret = obj.mUseThread;
  464. LuaDLL.lua_pushboolean(L, ret);
  465. return 1;
  466. }
  467. catch(Exception e)
  468. {
  469. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mUseThread on a nil value" : e.Message);
  470. }
  471. }
  472. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  473. static int get_mConnectState(IntPtr L)
  474. {
  475. object o = null;
  476. try
  477. {
  478. o = ToLua.ToObject(L, 1);
  479. SocketClient obj = (SocketClient)o;
  480. bool ret = obj.mConnectState;
  481. LuaDLL.lua_pushboolean(L, ret);
  482. return 1;
  483. }
  484. catch(Exception e)
  485. {
  486. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mConnectState on a nil value" : e.Message);
  487. }
  488. }
  489. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  490. static int set_networkStream(IntPtr L)
  491. {
  492. object o = null;
  493. try
  494. {
  495. o = ToLua.ToObject(L, 1);
  496. SocketClient obj = (SocketClient)o;
  497. System.Net.Sockets.NetworkStream arg0 = (System.Net.Sockets.NetworkStream)ToLua.CheckObject(L, 2, typeof(System.Net.Sockets.NetworkStream));
  498. obj.networkStream = arg0;
  499. return 0;
  500. }
  501. catch(Exception e)
  502. {
  503. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index networkStream on a nil value" : e.Message);
  504. }
  505. }
  506. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  507. static int set_readStream(IntPtr L)
  508. {
  509. object o = null;
  510. try
  511. {
  512. o = ToLua.ToObject(L, 1);
  513. SocketClient obj = (SocketClient)o;
  514. System.IO.MemoryStream arg0 = (System.IO.MemoryStream)ToLua.CheckObject(L, 2, typeof(System.IO.MemoryStream));
  515. obj.readStream = arg0;
  516. return 0;
  517. }
  518. catch(Exception e)
  519. {
  520. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index readStream on a nil value" : e.Message);
  521. }
  522. }
  523. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  524. static int set_reader(IntPtr L)
  525. {
  526. object o = null;
  527. try
  528. {
  529. o = ToLua.ToObject(L, 1);
  530. SocketClient obj = (SocketClient)o;
  531. System.IO.BinaryReader arg0 = (System.IO.BinaryReader)ToLua.CheckObject(L, 2, typeof(System.IO.BinaryReader));
  532. obj.reader = arg0;
  533. return 0;
  534. }
  535. catch(Exception e)
  536. {
  537. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reader on a nil value" : e.Message);
  538. }
  539. }
  540. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  541. static int set_writeFunc(IntPtr L)
  542. {
  543. object o = null;
  544. try
  545. {
  546. o = ToLua.ToObject(L, 1);
  547. SocketClient obj = (SocketClient)o;
  548. uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
  549. obj.writeFunc = arg0;
  550. return 0;
  551. }
  552. catch(Exception e)
  553. {
  554. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index writeFunc on a nil value" : e.Message);
  555. }
  556. }
  557. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  558. static int set_senting(IntPtr L)
  559. {
  560. object o = null;
  561. try
  562. {
  563. o = ToLua.ToObject(L, 1);
  564. SocketClient obj = (SocketClient)o;
  565. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  566. obj.senting = arg0;
  567. return 0;
  568. }
  569. catch(Exception e)
  570. {
  571. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index senting on a nil value" : e.Message);
  572. }
  573. }
  574. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  575. static int set_reading(IntPtr L)
  576. {
  577. object o = null;
  578. try
  579. {
  580. o = ToLua.ToObject(L, 1);
  581. SocketClient obj = (SocketClient)o;
  582. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  583. obj.reading = arg0;
  584. return 0;
  585. }
  586. catch(Exception e)
  587. {
  588. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reading on a nil value" : e.Message);
  589. }
  590. }
  591. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  592. static int set_buffer_list(IntPtr L)
  593. {
  594. object o = null;
  595. try
  596. {
  597. o = ToLua.ToObject(L, 1);
  598. SocketClient obj = (SocketClient)o;
  599. System.Collections.Generic.List<LuaFramework.ByteBuffer> arg0 = (System.Collections.Generic.List<LuaFramework.ByteBuffer>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<LuaFramework.ByteBuffer>));
  600. obj.buffer_list = arg0;
  601. return 0;
  602. }
  603. catch(Exception e)
  604. {
  605. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buffer_list on a nil value" : e.Message);
  606. }
  607. }
  608. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  609. static int set_receive_list(IntPtr L)
  610. {
  611. object o = null;
  612. try
  613. {
  614. o = ToLua.ToObject(L, 1);
  615. SocketClient obj = (SocketClient)o;
  616. System.Collections.Generic.List<System.IAsyncResult> arg0 = (System.Collections.Generic.List<System.IAsyncResult>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<System.IAsyncResult>));
  617. obj.receive_list = arg0;
  618. return 0;
  619. }
  620. catch(Exception e)
  621. {
  622. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index receive_list on a nil value" : e.Message);
  623. }
  624. }
  625. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  626. static int set_multipltFmtMode(IntPtr L)
  627. {
  628. object o = null;
  629. try
  630. {
  631. o = ToLua.ToObject(L, 1);
  632. SocketClient obj = (SocketClient)o;
  633. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  634. obj.multipltFmtMode = arg0;
  635. return 0;
  636. }
  637. catch(Exception e)
  638. {
  639. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multipltFmtMode on a nil value" : e.Message);
  640. }
  641. }
  642. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  643. static int set_multiplt_fmt_time(IntPtr L)
  644. {
  645. object o = null;
  646. try
  647. {
  648. o = ToLua.ToObject(L, 1);
  649. SocketClient obj = (SocketClient)o;
  650. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  651. obj.multiplt_fmt_time = arg0;
  652. return 0;
  653. }
  654. catch(Exception e)
  655. {
  656. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index multiplt_fmt_time on a nil value" : e.Message);
  657. }
  658. }
  659. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  660. static int set_last_sent_time(IntPtr L)
  661. {
  662. object o = null;
  663. try
  664. {
  665. o = ToLua.ToObject(L, 1);
  666. SocketClient obj = (SocketClient)o;
  667. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  668. obj.last_sent_time = arg0;
  669. return 0;
  670. }
  671. catch(Exception e)
  672. {
  673. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index last_sent_time on a nil value" : e.Message);
  674. }
  675. }
  676. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  677. static int set_cache_fmt_all_sent(IntPtr L)
  678. {
  679. object o = null;
  680. try
  681. {
  682. o = ToLua.ToObject(L, 1);
  683. SocketClient obj = (SocketClient)o;
  684. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  685. obj.cache_fmt_all_sent = arg0;
  686. return 0;
  687. }
  688. catch(Exception e)
  689. {
  690. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cache_fmt_all_sent on a nil value" : e.Message);
  691. }
  692. }
  693. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  694. static int set_use_sent_cache_state(IntPtr L)
  695. {
  696. object o = null;
  697. try
  698. {
  699. o = ToLua.ToObject(L, 1);
  700. SocketClient obj = (SocketClient)o;
  701. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  702. obj.use_sent_cache_state = arg0;
  703. return 0;
  704. }
  705. catch(Exception e)
  706. {
  707. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_sent_cache_state on a nil value" : e.Message);
  708. }
  709. }
  710. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  711. static int set_use_read_cache_state(IntPtr L)
  712. {
  713. object o = null;
  714. try
  715. {
  716. o = ToLua.ToObject(L, 1);
  717. SocketClient obj = (SocketClient)o;
  718. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  719. obj.use_read_cache_state = arg0;
  720. return 0;
  721. }
  722. catch(Exception e)
  723. {
  724. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_read_cache_state on a nil value" : e.Message);
  725. }
  726. }
  727. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  728. static int set_connect_network_ip(IntPtr L)
  729. {
  730. object o = null;
  731. try
  732. {
  733. o = ToLua.ToObject(L, 1);
  734. SocketClient obj = (SocketClient)o;
  735. string arg0 = ToLua.CheckString(L, 2);
  736. obj.connect_network_ip = arg0;
  737. return 0;
  738. }
  739. catch(Exception e)
  740. {
  741. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index connect_network_ip on a nil value" : e.Message);
  742. }
  743. }
  744. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  745. static int set_mUseThread(IntPtr L)
  746. {
  747. object o = null;
  748. try
  749. {
  750. o = ToLua.ToObject(L, 1);
  751. SocketClient obj = (SocketClient)o;
  752. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  753. obj.mUseThread = arg0;
  754. return 0;
  755. }
  756. catch(Exception e)
  757. {
  758. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mUseThread on a nil value" : e.Message);
  759. }
  760. }
  761. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  762. static int set_mConnectState(IntPtr L)
  763. {
  764. object o = null;
  765. try
  766. {
  767. o = ToLua.ToObject(L, 1);
  768. SocketClient obj = (SocketClient)o;
  769. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  770. obj.mConnectState = arg0;
  771. return 0;
  772. }
  773. catch(Exception e)
  774. {
  775. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mConnectState on a nil value" : e.Message);
  776. }
  777. }
  778. }