Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Alive.cs
1using System;
2using System.Net;
3using System.Threading.Tasks;
4
6{
11 public class Alive : IClusterMessage
12 {
16 public object Status
17 {
18 get;
19 set;
20 }
21
29 public Task<bool> MessageReceived(ClusterEndpoint Endpoint, IPEndPoint RemoteEndpoint)
30 {
31 Endpoint.StatusReported(this.Status, RemoteEndpoint);
32 return Task.FromResult(true);
33 }
34 }
35}
Represents one endpoint (or participant) in the network cluster.
Alive message regularly sent on the network to inform members of the cluster of the status of the cur...
Definition: Alive.cs:12
object Status
Machine status.
Definition: Alive.cs:17
Task< bool > MessageReceived(ClusterEndpoint Endpoint, IPEndPoint RemoteEndpoint)
Method called when the message has been received.
Definition: Alive.cs:29
Interface for cluster messages.