C# Class GladNet.Message.RequestMessage

Inheritance: NetworkMessage, IRequestMessage, IRoutableMessage
ファイルを表示 Open project: HelloKitty/GladNet2 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
DeepClone ( ) : NetworkMessage
Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void

Dispatches the RequestMessage (this) to the supplied INetworkMessageReceiver.

ExportRoutingDataTo ( IRoutableMessage message ) : void
Peek ( ) : int?

Peeks at the routing key this message would use to route. Call Pop to both Peek and Remove the key before sending.

Pop ( ) : int?

Removes a routing key from the message. This key indicates where this message should be forwared to.

Push ( int routingKey ) : void

Pushes a new routing key into the message. This key indicates where a message to this message should be routed back to.

RequestMessage ( PacketPayload payload ) : Easyception

Constructor for RequestMessage that calls NetworkMessage.ctor

Protected Methods

Method Description
RequestMessage ( ) : Easyception

Protected protobuf-net constructor.

RequestMessage ( NetSendable netSendablePayload ) : Easyception

Protected instructor used for deep cloning the NetworkMessage.

Method Details

DeepClone() public method

public DeepClone ( ) : NetworkMessage
return NetworkMessage

Dispatch() public method

Dispatches the RequestMessage (this) to the supplied INetworkMessageReceiver.
Throws if either parameters are null.
public Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void
receiver INetworkMessageReceiver The target .
parameters IMessageParameters The of the .
return void

ExportRoutingDataTo() public method

public ExportRoutingDataTo ( IRoutableMessage message ) : void
message IRoutableMessage
return void

Peek() public method

Peeks at the routing key this message would use to route. Call Pop to both Peek and Remove the key before sending.
public Peek ( ) : int?
return int?

Pop() public method

Removes a routing key from the message. This key indicates where this message should be forwared to.
public Pop ( ) : int?
return int?

Push() public method

Pushes a new routing key into the message. This key indicates where a message to this message should be routed back to.
public Push ( int routingKey ) : void
routingKey int Unique routing key.
return void

RequestMessage() protected method

Protected protobuf-net constructor.
protected RequestMessage ( ) : Easyception
return Easyception

RequestMessage() protected method

Protected instructor used for deep cloning the NetworkMessage.
protected RequestMessage ( NetSendable netSendablePayload ) : Easyception
netSendablePayload NetSendable Shallow copy of the PacketPayload for copying.
return Easyception

RequestMessage() public method

Constructor for RequestMessage that calls NetworkMessage.ctor
public RequestMessage ( PacketPayload payload ) : Easyception
payload GladNet.Payload.PacketPayload of the .
return Easyception