Shorter names and less global variables
Unicast: cleanup
Store pointer to the channel in the client instead of the number, avoids numerous argument passing
Cleanup
The channel and pids structure is not global anymore
Ident and typo in comments