OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
cod2client.py File Reference

Classes

class  cod2client.MsgWriter
class  cod2client.Client

Namespaces

namespace  cod2client

Functions

 cod2client.huffman_compress (data)
 cod2client.huffman_decompress (data)
 cod2client.xor_codec (data, key, string)
 cod2client.hash_key (string, maxlen=32)

Variables

str cod2client.PREFIX = b'\xff\xff\xff\xff'
str cod2client.HUFFMAN_CODES
dict cod2client.HUFFMAN_SYMBOLS = {code: symbol for symbol, code in enumerate(HUFFMAN_CODES)}
int cod2client.FRAGMENT_SIZE = 1300
int cod2client.FRAGMENT_BIT = 1 << 31
int cod2client.CLC_MOVE_NO_DELTA = 1
int cod2client.CLC_CLIENT_COMMAND = 2
int cod2client.CLC_EOF = 3
int cod2client.KEY_MASK_MOVE_FORWARD = 1