BytesRoad.Net.Sockets.Socket_Socks4.BeginConnect C# (CSharp) Метод

BeginConnect() приватный Метод

private BeginConnect ( EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
Результат IAsyncResult
        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;
        }

Same methods

Socket_Socks4::BeginConnect ( string hostName, int port, AsyncCallback callback, object state ) : IAsyncResult