C# Class GladNet.Message.ResponseMessage

Inheritance: NetworkMessage, IResponseMessage
Afficher le fichier Open project: HelloKitty/GladNet2 Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
ResponseMessage ( ) : System

Protected protobuf-net constructor.

ResponseMessage ( NetSendable netSendablePayload ) : System

Protected instructor used for deep cloning the NetworkMessage.

Method Details

DeepClone() public méthode

public DeepClone ( ) : NetworkMessage
Résultat NetworkMessage

Dispatch() public méthode

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 .
Résultat void

ExportRoutingDataTo() public méthode

public ExportRoutingDataTo ( IRoutableMessage message ) : void
message IRoutableMessage
Résultat void

Peek() public méthode

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?
Résultat int?

Pop() public méthode

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

Push() public méthode

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.
Résultat void

ResponseMessage() protected méthode

Protected protobuf-net constructor.
protected ResponseMessage ( ) : System
Résultat System

ResponseMessage() protected méthode

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

ResponseMessage() public méthode

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