Пример #1
0
        private void OnReceive(IAsyncResult result)
        {
            var data = new DhcpData((byte[]) result.AsyncState) {Result = result};

            if (_mAbort) return;
            Trace.TraceInformation("Dhcp Messages Received, Queued for Processing.");
            ThreadPool.QueueUserWorkItem(CompleteRequest, data);

            Listen();
        }
Пример #2
0
 internal DhcpMessage(DhcpData data)
     : this(data.MessageBuffer)
 {
 }
Пример #3
0
        private void OnReceive(IAsyncResult result )
        {
            
            DhcpData data = new DhcpData((Byte[])result.AsyncState);
            data.Result = result;
            if (!this.m_Abort)
            {
                Trace.TraceInformation("Dhcp Messages Received, Queued for Processing.");

                // Queue this request for processing
                ThreadPool.QueueUserWorkItem(new WaitCallback(this.CompleteRequest), data);

                this.Listen();
            }
        }