public override Task <IProxyServerUdpAssociateHandler> GetUdpAssociateHandlerAsync(EndPoint localEP) { IPEndPoint bindEP = GetBindEP(localEP.AddressFamily); IProxyServerUdpAssociateHandler udpHandler = new UdpSocketHandler(bindEP); return(Task.FromResult(udpHandler)); }
public override Task <IProxyServerUdpAssociateHandler> GetUdpAssociateHandlerAsync(EndPoint localEP) { if (_bindEP.AddressFamily != localEP.AddressFamily) { throw new SocketException((int)SocketError.NetworkUnreachable); } IProxyServerUdpAssociateHandler udpHandler = new UdpSocketHandler(_bindEP, _bindToInterfaceName); return(Task.FromResult(udpHandler)); }
public virtual Task <IProxyServerUdpAssociateHandler> GetUdpAssociateHandlerAsync(EndPoint localEP) { IProxyServerUdpAssociateHandler udpHandler = new UdpSocketHandler(localEP); return(Task.FromResult(udpHandler)); }