コード例 #1
0
 static public int Close(IntPtr l)
 {
     try {
         NetTcpSession self = (NetTcpSession)checkSelf(l);
         self.Close();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #2
0
 static public int GetPacketQueue(IntPtr l)
 {
     try {
         NetTcpSession self = (NetTcpSession)checkSelf(l);
         var           ret  = self.GetPacketQueue();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static public int constructor(IntPtr l)
 {
     try {
         NetTcpSession o;
         o = new NetTcpSession();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
 static public int PostPacket(IntPtr l)
 {
     try {
         NetTcpSession self = (NetTcpSession)checkSelf(l);
         INetPacket    a1;
         checkType(l, 2, out a1);
         self.PostPacket(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int OnConnThread(IntPtr l)
 {
     try {
         NetTcpSession self = (NetTcpSession)checkSelf(l);
         System.Object a1;
         checkType(l, 2, out a1);
         self.OnConnThread(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #6
0
 static public int Connect(IntPtr l)
 {
     try {
         NetTcpSession self = (NetTcpSession)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         var ret = self.Connect(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }