C# Класс P2PStateServer.PingMessage

Represents the PingMessage message
The PingMessage is sent from one peer to another for two reasons: 1. As a keep-alive mechanism. 2. To inform the recipient peer that he sending peer is a permanent peer connection that should be included when the recipient peer is forwarding or broadcasting GetTransfer messages. This message can only be transmitted between peers.
Наследование: PeerMessage
Показать файл Открыть проект

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

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

Forward the message to connected peers

PingMessage ( HTTPPartialData Data, StateServer Service ) : System

Initializes a new instance of the PingMessage class

Process ( ) : void

Process the message

Send ( ServiceSocket socket, string ServerIP ) : void

Sends a PingMessage message to a specified ServiceSocket

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

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

Forward the message to connected peers
public Forward ( ) : void
Результат void

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

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

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

Process the message
public Process ( ) : void
Результат void

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

Sends a PingMessage message to a specified ServiceSocket
public static Send ( ServiceSocket socket, string ServerIP ) : void
socket ServiceSocket The target ServiceSocket
ServerIP string
Результат void