public override void connectors_async(Ice.EndpointSelectionType selType, EndpointI_connectors callback) { #if SILVERLIGHT callback.connectors(connectors(selType)); #else _instance.endpointHostResolver().resolve(_host, _port, selType, this, callback); #endif }
public override void connectors_async(Ice.EndpointSelectionType selType, EndpointI_connectors callback) { #if SILVERLIGHT callback.connectors(connectors(selType)); #else instance_.resolve(host_, port_, selType, this, callback); #endif }
public void resolve(string host, int port, Ice.EndpointSelectionType selType, EndpointI endpoint, EndpointI_connectors callback) { // // Try to get the addresses without DNS lookup. If this doesn't work, we queue a resolve // entry and the thread will take care of getting the endpoint addresses. // NetworkProxy networkProxy = _instance.networkProxy(); if (networkProxy == null) { try { List <EndPoint> addrs = Network.getAddresses(host, port, _protocol, selType, _preferIPv6, false); if (addrs.Count > 0) { callback.connectors(endpoint.connectors(addrs, null)); return; } } catch (Ice.LocalException ex) { callback.exception(ex); return; } } _m.Lock(); try { Debug.Assert(!_destroyed); ResolveEntry entry = new ResolveEntry(); entry.host = host; entry.port = port; entry.selType = selType; entry.endpoint = endpoint; entry.callback = callback; Ice.Instrumentation.CommunicatorObserver obsv = _instance.getObserver(); if (obsv != null) { entry.observer = obsv.getEndpointLookupObserver(endpoint); if (entry.observer != null) { entry.observer.attach(); } } _queue.AddLast(entry); _m.Notify(); } finally { _m.Unlock(); } }
public void resolve(string host, int port, Ice.EndpointSelectionType selType, IPEndpointI endpoint, EndpointI_connectors callback) { // // Try to get the addresses without DNS lookup. If this doesn't work, we queue a resolve // entry and the thread will take care of getting the endpoint addresses. // NetworkProxy networkProxy = _instance.networkProxy(); if(networkProxy == null) { try { List<EndPoint> addrs = Network.getAddresses(host, port, _protocol, selType, _preferIPv6, false); if(addrs.Count > 0) { callback.connectors(endpoint.connectors(addrs, null)); return; } } catch(Ice.LocalException ex) { callback.exception(ex); return; } } lock(this) { Debug.Assert(!_destroyed); ResolveEntry entry = new ResolveEntry(); entry.host = host; entry.port = port; entry.selType = selType; entry.endpoint = endpoint; entry.callback = callback; Ice.Instrumentation.CommunicatorObserver obsv = _instance.initializationData().observer; if(obsv != null) { entry.observer = obsv.getEndpointLookupObserver(endpoint); if(entry.observer != null) { entry.observer.attach(); } } _queue.AddLast(entry); System.Threading.Monitor.Pulse(this); } }
// // Return connectors for this endpoint, or empty list if no connector // is available. // public override void connectors_async(Ice.EndpointSelectionType endSel, EndpointI_connectors callback) { callback.connectors(new List <Connector>()); }
// // Return connectors for this endpoint, or empty list if no connector // is available. // public override void connectors_async(Ice.EndpointSelectionType endSel, EndpointI_connectors callback) { callback.connectors(new List<Connector>()); }
public override void connectors_async(EndpointI_connectors callback) { callback.connectors(new List<Connector>()); }