Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DataPort.cs
1using System;
2using System.Net;
4
6{
10 internal class DataPort : IDisposable
11 {
15 public TcpListener Listener;
16
20 public IPEndPoint LocalEndpoint;
21
25 public FtpServer Server;
26
30 public int Port;
31
35 public bool ReleaseAfterUse;
36
40 public void Dispose()
41 {
42 if (this.ReleaseAfterUse)
43 {
44 this.Listener.Stop();
45 this.Server.ReleaseDataPort(this.Port);
46 }
47 }
48 }
49}