Packet ID generator Holds the status of ID usage and generates the next ones.
It's a thread safe singleton
Is packet id currently used?
Sets packet id as unused
Sets packet id as used
Instance of Packet ID generator
Gets next packet id. If the session is full it won't return till there is free space again
See Implementation
Packet ID generator Holds the status of ID usage and generates the next ones.
It's a thread safe singleton