public void Start(NetEndPoint endPoint) { ThreadChecker.AssertMainThread(); this.tcpSocket.Bind(endPoint); this.tcpSocket.Start(); this.udpSocket.Bind(endPoint); this.listeningOnEndPoint = this.tcpSocket.localEndPoint; ReliableChannel.StartIO(); this.unreliableChannel.StartIO(); }
public void Connect(string host, int port) { this.tcpSocket.Connect(new NetEndPoint(IPAddress.Parse(host), port)); ReliableChannel.StartIO(); this.unreliableChannel.StartIO(); }