LumiSoft Net Help
BeginConnect Method (host, port, ssl, callback, state)
NamespacesLumiSoft.Net.TCPTCP_ClientBeginConnect(String, Int32, Boolean, AsyncCallback, Object)
Starts connection to the specified host.
Declaration Syntax
C#Visual BasicVisual C++F#
[ObsoleteAttribute("Use method ConnectAsync instead.")]
public IAsyncResult BeginConnect(
	string host,
	int port,
	bool ssl,
	AsyncCallback callback,
	Object state
)
<ObsoleteAttribute("Use method ConnectAsync instead.")>
Public Function BeginConnect ( 
	host As String,
	port As Integer,
	ssl As Boolean,
	callback As AsyncCallback,
	state As Object
) As IAsyncResult
public:
[ObsoleteAttribute(L"Use method ConnectAsync instead.")]
IAsyncResult^ BeginConnect(
	String^ host, 
	int port, 
	bool ssl, 
	AsyncCallback^ callback, 
	Object^ state
)
[<ObsoleteAttribute("Use method ConnectAsync instead.")>]
member BeginConnect : 
        host : string * 
        port : int * 
        ssl : bool * 
        callback : AsyncCallback * 
        state : Object -> IAsyncResult 
Parameters
host (String)
Host name or IP address.
port (Int32)
Port to connect.
ssl (Boolean)
Specifies if connects to SSL end point.
callback (AsyncCallback)
Callback to call when the connect operation is complete.
state (Object)
User data.
Return Value
IAsyncResult
An IAsyncResult that references the asynchronous connection.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
InvalidOperationExceptionIs raised when TCP client is already connected.
ArgumentExceptionIs raised when any of the arguments has invalid value.

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