Added basic_server base source codes from study.  Modify to single thread event processing structure.