internal static UdpClient Client(ushort destport) { if (clients.ContainsKey((uint)destport) == true) { return(clients[(uint)destport]); } return(null); }
internal static DNSClient Client(ushort destPort) { if (clients.ContainsKey((UInt32)destPort) == true) { return(clients[(UInt32)destPort]); } return(null); }
internal static TCPClient Client(ushort destPort) { if (clients.ContainsKey((UInt32)destPort) == true) { Apps.System.Debugger.debugger.Send("Client exists for port" + destPort); return(clients[(UInt32)destPort]); } return(null); }
/// <summary> /// Check if ARP cache contains the given IP. /// </summary> /// <param name="ipAddress">IP address to check.</param> /// <returns>bool value.</returns> internal static bool Contains(IPv4.Address ipAddress) { ensureCacheExists(); return(cache.ContainsKey(ipAddress.Hash)); }