Init() public method

public Init ( string ip, int port, LuaFunction recvCallback ) : void
ip string
port int
recvCallback LuaFunction
return void
Example #1
0
 static public int Init(IntPtr l)
 {
     try {
         TcpSocket     self = (TcpSocket)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         SLua.LuaFunction a3;
         checkType(l, 4, out a3);
         self.Init(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }