com.onlineobject.objectnet Namespace

IEmbeddedClient..::..Connect Method

Starts the transport and attempts to connect to the given host address.

Namespace:  com.onlineobject.objectnet.server.Transports
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


bool Connect(

	string hostAddress,

	out EmbeddedConnection connection,

	out string connectError

)

Parameters

hostAddress
Type: String
The host address to connect to.
connection
Type: com.onlineobject.objectnet.server..::..EmbeddedConnection%
The pending connection. nullNothingnullptra null reference (Nothing in Visual Basic) if an issue occurred.
connectError
Type: String%
The error message associated with the issue that occurred, if any.

Return Value

trueTruetruetrue (True in Visual Basic) if a connection attempt will be made. falseFalsefalsefalse (False in Visual Basic) if an issue occurred (such as hostAddress being in an invalid format) and a connection attempt will not be made.