public void Init() { tcpClient = new LocalTCPConnection(false, 2001); }
/** * SendCallback */ public static void SendCallback(IAsyncResult AsyncResult) { LocalTCPConnection TCPs = (LocalTCPConnection)AsyncResult.AsyncState; TCPs.OnSend(AsyncResult); }
/** * ReceiveCallback */ public static void ReceiveCallback(IAsyncResult AsyncResult) { LocalTCPConnection TCPs = (LocalTCPConnection)AsyncResult.AsyncState; TCPs.OnReceive(AsyncResult); }
/** * ConnectCallback */ public static void ConnectCallback(IAsyncResult AsyncResult) { LocalTCPConnection Client = (LocalTCPConnection)AsyncResult.AsyncState; Client.OnConnect(AsyncResult); }
/** * AcceptCallback */ public static void AcceptCallback(IAsyncResult AsyncResult) { LocalTCPConnection Server = (LocalTCPConnection)AsyncResult.AsyncState; Server.OnAccept(AsyncResult); }