Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AddressInfo.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
5
7{
11 public class AddressInfo
12 {
13 private readonly string xmppAddress;
14 private readonly string externalIp;
15 private readonly string localIp;
16 private readonly int externalPort;
17 private readonly int localPort;
18
27 public AddressInfo(string XmppAddress, string ExternalIp, int ExternalPort, string LocalIp, int LocalPort)
28 {
29 this.xmppAddress = XmppAddress;
30 this.externalIp = ExternalIp;
31 this.externalPort = ExternalPort;
32 this.localIp = LocalIp;
33 this.localPort = LocalPort;
34 }
35
39 public string XmppAddress => this.xmppAddress;
40
44 public string ExternalIp => this.externalIp;
45
49 public int ExternalPort => this.externalPort;
50
54 public string LocalIp => this.localIp;
55
59 public int LocalPort => this.localPort;
60 }
61}
Contains information about peer addresses.
Definition: AddressInfo.cs:12
AddressInfo(string XmppAddress, string ExternalIp, int ExternalPort, string LocalIp, int LocalPort)
Contains information about peer addresses.
Definition: AddressInfo.cs:27
int LocalPort
Local Port Number.
Definition: AddressInfo.cs:59
int ExternalPort
External Port Number.
Definition: AddressInfo.cs:49
string XmppAddress
XMPP Address (Bare JID).
Definition: AddressInfo.cs:39
string ExternalIp
External IP Address.
Definition: AddressInfo.cs:44
string LocalIp
Local IP Address.
Definition: AddressInfo.cs:54