BytesRoad.Net.Sockets.SocketEx.Connect C# (CSharp) Метод

Connect() публичный Метод

Establishes a connection to a remote host by using specified instance of the System.Net.EndPoint class.
Connect method will block until the connection with remote host is established or error occurs.
/// The object was disposed. /// /// The remoteEP parameter is null (Nothing in Visual Basic). /// /// An error occurred when attempting to access /// the socket used to complete requested operation. ///
public Connect ( EndPoint remoteEP ) : void
remoteEP System.Net.EndPoint /// An instance of the class which /// represents remote end point to connect to. ///
Результат void
        public void Connect(EndPoint remoteEP)
        {
            DoTimeoutOp(
                _connectTimeout, 
                new ConnectOp(_baseSocket, remoteEP));
        }

Same methods

SocketEx::Connect ( string hostName, int hostPort ) : void