Inheritance: StateObject
Ejemplo n.º 1
0
        protected override void Receive()
        {
            if (!KeepGoing)
                return;

            Signal.Reset();
            var state = new UdpState(BoundSocket);
            state.BeginReceive(ReadCallback);
            Signal.WaitOne();
        }
Ejemplo n.º 2
0
        protected override void Receive()
        {
            if (!KeepGoing)
            {
                return;
            }

            signal.Reset();
            var state = new UdpState(BoundSocket);

            state.BeginReceive(ReadCallback);
            signal.WaitOne();
        }