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
파일 보기 프로젝트 열기: tenor/p2pStateServer

보호된 프로퍼티들

프로퍼티 타입 설명
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?