- support sequence number, retry
- refactor server code
use log module instead of print
add a thread to handle received data