Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
InternetGatewayRegistration.cs
1using System.Text;
2
4{
9 {
13 public string ApplicationName = string.Empty;
14
18 public ushort LocalPort = 0;
19
23 public ushort ExternalPort = 0;
24
28 public bool Tcp = true;
29
33 public bool Udp = true;
34
38 internal bool TcpRegistered = false;
39
43 internal bool UdpRegistered = false;
44
46 public override string ToString()
47 {
48 StringBuilder sb = new StringBuilder();
49
50 sb.Append(this.ApplicationName);
51 sb.Append(", Local: ");
52 sb.Append(this.LocalPort);
53 sb.Append(", External: ");
54 sb.Append(this.ExternalPort);
55
56 if (this.Tcp)
57 sb.Append(", TCP");
58
59 if (this.Udp)
60 sb.Append(", UDP");
61
62 return sb.ToString();
63 }
64 }
65}
Represents a registraing in an UPnP-compatible Internet Gateway.
string ApplicationName
Name of application to be registered.