Esempio n. 1
0
            public ConnectStage(IPEndPoint ip, IConnectProviderable agent)
            {
                _Peer = agent.Spawn();


                _Ip = ip;
            }
Esempio n. 2
0
        void _Connect(string ip, int port)
        {
            var        socket   = _Client.Spawn();
            IPEndPoint endpoint = new IPEndPoint(IPAddress.Parse(ip), port);

            socket.Connect(endpoint, (result) =>
            {
                if (result)
                {
                    _Updater.Add(new PeerHandler(_Command, _Viewer, socket));
                }
            });
        }