/// <summary> /// Starts listening at the specified port in the connectivity settings. /// </summary> public void Listen(IPAddress address, int port) { ProxySocket socket = Processor.GetPreparedSocket(address, port); // Begin waiting for the incoming connection socket.Listen(1); // set this value so we know whether to send a handshake message or not later in the process isListener = true; socketListener = socket; SetupTimer(); socket.BeginAccept(new AsyncCallback(EndAcceptCallback), socket); }