override internal IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback callback, object state)
{
CheckDisposed();
Connect_SO stateObj = null;
SetProgress(true);
try
{
stateObj = new Connect_SO(remoteEP, -1, callback, state);
//------------------------------------
// Get end point for the proxy server
//
BeginGetHostByName(
_proxyServer,
new AsyncCallback(Connect_GetHost_Proxy_End),
stateObj);
}
catch(Exception ex)
{
SetProgress(false);
throw ex;
}
return stateObj;
}