Connects to the specified remote end point.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void Connect( IPEndPoint remoteEP, bool ssl )
Public Sub Connect ( remoteEP As IPEndPoint, ssl As Boolean )
public: void Connect( IPEndPoint^ remoteEP, bool ssl )
member Connect : remoteEP : IPEndPoint * ssl : bool -> unit
Parameters
- remoteEP (IPEndPoint)
- Remote IP end point where to connect.
- ssl (Boolean)
- Specifies if connects to SSL end point.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when TCP client is already connected. |
ArgumentNullException | Is raised when remoteEP is null. |
ArgumentException | Is raised when any of the arguments has invalid value. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119