com.onlineobject.objectnet Namespace

EmbeddedUdpClient..::..Connect Method

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

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

Syntax


public 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.

Remarks


Expects the host address to consist of an IP and port, separated by a colon. For example: 127.0.0.1:7777.