public IAsyncResult BeginConnect(System.Net.IPAddress[] addresses, int port, AsyncCallback callback)
 {
     this._delegateConnectIPAddresses = this.Connect;
     return this._delegateConnectIPAddresses.BeginInvoke(addresses, port, callback,
                                                         this._delegateConnectIPAddresses);
 }
Exemple #2
0
                    public IAsyncResult BeginConnect(System.Net.IPAddress[] addresses, int port, AsyncCallback callback)
                    {
                        this._delegateConnectIPAddresses = this.Connect;
#if !PocketPC
                        return this._delegateConnectIPAddresses.BeginInvoke(addresses, port, callback, this._delegateConnectSslIPAddresses);
#else
                        return this._delegateConnectIPAddresses.BeginInvoke(addresses, port, callback, null);
#endif
                    }