K2Informatics.Erlnet.OtpNode.Acceptor.Acceptor C# (CSharp) Méthode

Acceptor() public méthode

public Acceptor ( OtpNode node, int port ) : System
node OtpNode
port int
Résultat System
            public Acceptor(OtpNode node, int port)
                : base("OtpNode.Acceptor", true)
            {
                this.node = node;

                sock = new TcpListener(new IPEndPoint(IPAddress.Any, port));
                sock.Start();
                this.port = ((IPEndPoint)sock.LocalEndpoint).Port;
                node.port = this.port;
                publishPort();
                base.start();
            }