Esempio n. 1
0
        public xbs_node(IPAddress ip_from, int port_from)
        {
#if DEBUG
            statistics.node = this;
#endif
            this.ip_announced   = null;
            this.port_announced = -1;
            this.ip_sendfrom    = ip_from;
            this.port_sendfrom  = port_from;
            this.ip_public      = ip_from;
            this.port_public    = port_from;

            client_version     = CLIENT_VERSION_UNKNOWN;
            nickname           = "{Anonymous}";
            nickname_received  = false;
            last_ping_delay_ms = -1;

            this.xbox_list = new List <xbs_xbox>();
            this.node_type = xbs_node_type.UDP;
        }
Esempio n. 2
0
        public xbs_node(IPAddress ip_from, int port_from)
        {
#if DEBUG
            statistics.node = this;
#endif
            this.ip_announced = null;
            this.port_announced = -1;
            this.ip_sendfrom = ip_from;
            this.port_sendfrom = port_from;
            this.ip_public = ip_from;
            this.port_public = port_from;
            
            client_version = CLIENT_VERSION_UNKNOWN;
            nickname = "{Anonymous}";
            nickname_received = false;
            last_ping_delay_ms = -1;

            this.xbox_list = new List<xbs_xbox>();
            this.node_type = xbs_node_type.UDP;
        }