LumiSoft Net Help
Connect Method (localEP, remoteEP, ssl)
Namespaces ► LumiSoft.Net.TCP ► TCP_Client ► Connect(IPEndPoint, IPEndPoint, Boolean)
Connects to the specified remote end point.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public void Connect(
    	IPEndPoint localEP,
    	IPEndPoint remoteEP,
    	bool ssl
    )

    Public Sub Connect (
    	localEP As IPEndPoint,
    	remoteEP As IPEndPoint,
    	ssl As Boolean
    )

    public:
    void Connect(
    	IPEndPoint^ localEP,
    	IPEndPoint^ remoteEP,
    	bool ssl
    )

    member Connect :
            localEP : IPEndPoint *
            remoteEP : IPEndPoint *
            ssl : bool -> unit

Parameters

localEP (IPEndPoint)
  Local IP end point to use. Value null means that system will allocate it.

remoteEP (IPEndPoint)
  Remote IP end point to connect.

ssl (Boolean)
  Specifies if connection switches to SSL affter connect.

Exceptions

Exception | Condition
--- | ---
ObjectDisposedException | Is raised when this object is disposed and and this method is accessed.
InvalidOperationException | Is raised when TCP client is already connected.
ArgumentNullException | Is raised when remoteEP is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119