Transportstart Method OpenDOF Object Access Library
Start a server.

Namespace: org.opendof.core.transport
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
Server start(
	ServerConfig config,
	DOFAddress listenAddress,
	TransportHandler handler,
	DOFServerType type,
	Server relatedServer,
	ServerCallback context
)

Parameters

config
Type: org.opendof.core.transportServerConfig
Transport specific configuration.
listenAddress
Type: org.opendof.core.oalDOFAddress
The address the server should bind to, which may be an address that indicates all known addresses for the transport should be bound.
handler
Type: org.opendof.core.transportTransportHandler
The associated transport handler for the server. Once the start succeeds the handler started method must be called with the server object that represents this request.
type
Type: org.opendof.core.oalDOFServerType
The type of server.
relatedServer
Type: org.opendof.core.transportServer
A server to associate with this server.
context
Type: org.opendof.core.transportServerCallback
Data associated with the server.

Return Value

Type: Server
The server object that represents this server.
Exceptions

ExceptionCondition
ExceptionIf a server could not be started.
Remarks

Start a server. The server address transport Class must match the Class of the transport or an Exception must be thrown. The method should return immediately, and the transport manager started method should be called when the server has started.
See Also

Reference