Class NetworkChannel.MessageFactory
Message factory.
Used for building message types and associating handlers.
Inheritance
NetworkChannel.MessageFactory
Assembly: FNNLib.dll
Syntax
public class MessageFactory
Methods
|
Improve this Doc
View Source
Buffered()
Denotes whether or not the message can be buffered
Declaration
public NetworkChannel.MessageFactory Buffered()
Returns
Exceptions
|
Improve this Doc
View Source
ClientConsumer(NetworkChannel.MessageFactory.ReaderClientConsumerMethod)
Adds a client consumer that takes a reader.
Cannot be mixed with typed consumers.
Declaration
public NetworkChannel.MessageFactory ClientConsumer(NetworkChannel.MessageFactory.ReaderClientConsumerMethod consumerMethod)
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
ClientConsumer<T>(NetworkChannel.MessageFactory.TypedClientConsumerMethod<T>)
Adds a consumer for the client that takes the serializable object as a parameter.
Cannot be mixed with reader consumers.
Declaration
public NetworkChannel.MessageFactory ClientConsumer<T>(NetworkChannel.MessageFactory.TypedClientConsumerMethod<T> method)
where T : ISerializable
Parameters
Returns
Type Parameters
| Name |
Description |
| T |
The object type to be received. Must be compatible.
|
Exceptions
|
Improve this Doc
View Source
Consumer(NetworkChannel.MessageFactory.ReaderConsumerMethod)
Adds a consumer that takes a reader.
Declaration
public NetworkChannel.MessageFactory Consumer(NetworkChannel.MessageFactory.ReaderConsumerMethod consumerMethod)
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
Consumer<T>(NetworkChannel.MessageFactory.TypedConsumerMethod<T>)
Add a consumer that takes the serializable object as a parameter.
Declaration
public NetworkChannel.MessageFactory Consumer<T>(NetworkChannel.MessageFactory.TypedConsumerMethod<T> method)
where T : ISerializable
Parameters
Returns
Type Parameters
| Name |
Description |
| T |
The object type to be received. Must be compatible.
|
|
Improve this Doc
View Source
Register()
Register the message in the channel.
Declaration
Exceptions
| Type |
Condition |
| Exception |
Factory is incomplete.
|
|
Improve this Doc
View Source
ServerConsumer(NetworkChannel.MessageFactory.ReaderServerConsumerMethod)
Adds a server consumer that takes a reader.
Cannot be mixed with typed consumers.
Declaration
public NetworkChannel.MessageFactory ServerConsumer(NetworkChannel.MessageFactory.ReaderServerConsumerMethod consumerMethod)
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
ServerConsumer<T>(NetworkChannel.MessageFactory.TypedServerConsumerMethod<T>)
Adds a consumer for the server that takes the serializable object as a parameter.
Cannot be mixed with reader consumers.
Declaration
public NetworkChannel.MessageFactory ServerConsumer<T>(NetworkChannel.MessageFactory.TypedServerConsumerMethod<T> method)
where T : ISerializable
Parameters
Returns
Type Parameters
| Name |
Description |
| T |
The object type to be received. Must be compatible.
|
Exceptions