Receiver thread which reads the messages. Please read comments in code
Merge branch 'master' of github.com:xinlongz/DS0