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: ServerThe server object that represents this server.
Exceptions
Exception | Condition |
---|---|
Exception | If a server could not be started. |
Remarks
See Also