Exemple #1
0
        public byte[] Get(string version)
        {
            BinaryBuffer buffer = new BinaryBuffer();

            // @ToDo variable settings
            buffer.Append(this.Name);
            buffer.AddNullByte();
            // k90cab
            buffer.Append(CreateVersion(version));              // Client Version
            buffer.AddNullByte();
            buffer.Append("http://www.knuddels.de/");           // Referer / Location
            buffer.AddNullByte();
            buffer.Append("3");                                 // Category
            buffer.AddNullByte();
            buffer.Append("1.6.0_22");                          // Java Version
            buffer.AddNullByte();
            buffer.Append("-");                                 // ZIP Code
            buffer.AddNullByte();
            buffer.Append("46513");                             // Local Port
            buffer.AddNullByte();
            buffer.Append("Java HotSpot(TM) Server VM");        // Java VM Name
            buffer.AddNullByte();
            buffer.Append("-");                                 // Cookie

            return(buffer.GetBytes());
        }
Exemple #2
0
        public byte[] Get(string id)
        {
            BinaryBuffer buffer = new BinaryBuffer();

            buffer.Append("h");
            buffer.AddNullByte();

            if (id != null)
            {
                buffer.Append(id);
            }

            return(buffer.GetBytes());
        }
Exemple #3
0
        public byte[] Get(string nickname, string password, string channel)
        {
            BinaryBuffer buffer = new BinaryBuffer();

            buffer.Append(this.Name);
            buffer.AddNullByte();
            buffer.Append(channel);
            buffer.AddNullByte();
            buffer.Append(nickname);
            buffer.AddNullByte();
            buffer.Append(password);
            buffer.AddNullByte();
            buffer.Append("T");

            return(buffer.GetBytes());
        }