second version
remove redundent
remove redundent
fix bugs, it works now
successful version
Final bug fix:
1. byte sender forgot to close.
2. use read() instead of available() in socket inputStream