Here are the examples of the csharp api class System.Collections.Concurrent.BlockingCollection.Add(IPDiscoveryEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: Discore
Source File: VoiceUDPSocket.cs
Source File: VoiceUDPSocket.cs
void HandleIPDiscoveryPacket(byte[] data) { discoveringIP = false; // Read IP as null-terminated string string ip = Encoding.UTF8.GetString(data, 4, 70 - 6).TrimEnd('\0'); // Read port int port = (ushort)(data[68] | data[69] << 8); IPDiscoveryQueue.Add(new IPDiscoveryEventArgs(ip, port)); }