C# Класс P2PStateServer.PeerMessage

Represents a PeerMessage message
The PeerMessage class represents a peer-to-peer message. PeerMessages can be sent at anytime and are not required to be responded to. Peer messages should be derived from the PeerMessage class.
Наследование: ServiceMessage
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
broadcastID System.Guid
id Guid?
maxForwards uint?

Открытые методы

Метод Описание
Forward ( ) : void

When overriden in a derived class, forwards this peerMessage message

PeerMessage ( HTTPPartialData Data, StateServer Service ) : System

Initializes a new instance of the PeerMessage class

Описание методов

Forward() публичный абстрактный Метод

When overriden in a derived class, forwards this peerMessage message
public abstract Forward ( ) : void
Результат void

PeerMessage() публичный Метод

Initializes a new instance of the PeerMessage class
public PeerMessage ( HTTPPartialData Data, StateServer Service ) : System
Data HTTPPartialData The HTTPPartialData class to load this instance from
Service StateServer State server instance
Результат System

Описание свойств

broadcastID защищенное свойство

Identifies a peer message broadcast.
A peer message can be re-broadcast several times and so have different broadcast IDs.
protected Guid,System broadcastID
Результат System.Guid

id защищенное свойство

The peer message's unique identifier on the network
protected Guid? id
Результат Guid?

maxForwards защищенное свойство

The maximum number of times the message is to be forwarded
This field is decremented by one before been forwarded by a peer
protected uint? maxForwards
Результат uint?