Example #1
0
        public override void Open()
        {
            this.Handle = SocketFactory.CreateNonBlockingUdpP2PSocket();
            this.Handle.Bind(local);
            IPEndPoint ipEp = new IPEndPoint(((IPEndPoint)remote).Address, ((IPEndPoint)remote).Port);

            this.Handle.Connect(ipEp);
            this.reactor.RegisterHandler(this, EventType.READ_WRITE_EVENT);
        }