C# Class GladNet.Message.ResponseMessage

Inheritance: NetworkMessage, IResponseMessage
Datei anzeigen 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 ResponseMessage (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.

ResponseMessage ( PacketPayload payload ) : System

Constructor for ResponseMessage that calls NetworkMessage.ctor

Protected Methods

Method Description
ResponseMessage ( ) : System

Protected protobuf-net constructor.

ResponseMessage ( NetSendable netSendablePayload ) : System

Protected instructor used for deep cloning the NetworkMessage.

Method Details

DeepClone() public method

public DeepClone ( ) : NetworkMessage
return NetworkMessage

Dispatch() public method

Dispatches the ResponseMessage (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

ResponseMessage() protected method

Protected protobuf-net constructor.
protected ResponseMessage ( ) : System
return System

ResponseMessage() protected method

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

ResponseMessage() public method

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