init of the code

finish basic UI and net functions.
it can send to and receive from localhost from different thread in
different tab activity