Esempio n. 1
0
 internal void Init(Node node, Socket socket, IPAddress address, int port, string nickname)
 {
     this.node                 = node;
     msgFactory                = node.MessageFactory;
     Nickname                  = nickname;
     this.endpoint             = new IPEndPoint(address, port);
     outboundQueue             = new OutboundQueue(node, this.endpoint, socket);
     ackMessage                = msgFactory.Get <AckMessage>();
     previousActivityTimeTicks = Environment.TickCount;
 }
Esempio n. 2
0
 internal void Init(Node node, Socket socket, IPAddress address, int port, string nickname)
 {
     this.node = node;
     msgFactory = node.MessageFactory;
     Nickname = nickname;
     this.endpoint = new IPEndPoint(address, port);
     outboundQueue = new OutboundQueue(node, this.endpoint, socket);
     ackMessage = msgFactory.Get<AckMessage>();
     previousActivityTimeTicks = Environment.TickCount;
 }