/// <summary> /// Start polling /// </summary> /// <param name="addr">Ignored in this case. Set URL.</param> public override void Connect(Address addr) { Debug.Assert(m_uri != null); m_rid = -1L; m_lastSock = null; m_running = false; // Create new ones each time, in case the URL has changed or something. m_sockA = new HttpSocket(this); m_sockB = new HttpSocket(this); m_sockA.ProxyURI = m_sockB.ProxyURI = m_proxyURI; m_sockA.ProxyCredentials = m_sockB.ProxyCredentials = m_proxyCredentials; m_sockA.Connect(m_uri); m_sockB.Connect(m_uri); }
/// <summary> /// Start polling /// </summary> /// <param name="addr">Ignored in this case. Set URL.</param> public override void Connect(Address addr) { Debug.Assert(m_uri != null); m_rid = -1L; m_lastSock = null; m_running = false; // Create new ones each time, in case the URL has changed or something. m_sockA = new HttpSocket(this); m_sockB = new HttpSocket(this); m_sockA.Name = "A"; m_sockB.Name = "B"; m_sockA.ProxyURI = m_sockB.ProxyURI = m_proxyURI; m_sockA.ProxyCredentials = m_sockB.ProxyCredentials = m_proxyCredentials; m_sockA.Connect(m_uri); m_sockB.Connect(m_uri); }