Beispiel #1
0
        public override void Open()
        {
            this.Handle = SocketFactory.CreateNonBlockingUdpBroadcastSocket();
            this.Handle.Bind(local);
            IPEndPoint ipEp = new IPEndPoint(IPAddress.Broadcast, ((IPEndPoint)local).Port);

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