com.onlineobject.objectnet Namespace

EmbeddedMessageRelayFilter Constructor (Int32, array<UInt16>[]()[][])

Creates a filter of a given size and enables relaying for the given message IDs.

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

Syntax


public EmbeddedMessageRelayFilter(

	int size,

	params ushort[] idsToEnable

)

Parameters

size
Type: Int32
How big to make the filter.
idsToEnable
Type: array<UInt16>[]()[][]
Message IDs to enable auto relaying for.

Remarks


size should be set to the value of the largest message ID, plus 1. For example, if a server will handle messages with IDs 1, 2, 3, 7, and 8, size should be set to 9 (8 is the largest possible value, and 8 + 1 = 9) despite the fact that there are only 5 unique message IDs the server will ever handle.