Click or drag to resize

ProtocolEnsureController Method

Makes sure that there is an instance of a specific controller. Also makes sure that security is in place. Knowing what methods the connection can call.

Namespace:  Crosser.Server.Modules.Protocol
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
protected virtual IController EnsureController(
	byte[] controller,
	int length
)

Parameters

controller
Type: SystemByte
The payload contaning the controller representation in bytes
length
Type: SystemInt32
The length of the controller, so that we read the correct amount of data from the controller payload

Return Value

Type: IController
The IController to be used by the IProtocol
See Also