示例#1
0
 public TCPUDPConnection GetUDPConnection(EndPoint localEndPoint, EndPoint remoteEndPoint)
 {
     udpConnections.Refresh();
     return(udpConnections.SingleOrDefault(c => (c.Local?.Equals(localEndPoint) ?? false) && (c.Remote?.Equals(remoteEndPoint) ?? false)));
 }
示例#2
0
 public TCPUDPConnection GetTCPConnection(EndPoint localEndPoint, EndPoint remoteEndPoint)
 {
     tcpUdpConnections.Refresh();
     return(tcpUdpConnections.SingleOrDefault(c => c.Local.Equals(localEndPoint) && c.Remote.Equals(remoteEndPoint)));
 }