connect


Description:

public bool connect ()

Open the session using the host and port.

Parameters:

this

a Session

Returns:

false if the session state is invalid for connection request. true if the connection is initiated. To know whether the connection is established, you must watch for channels creation ( channel_new) and the channels state ( channel_event).