fix bugs1
handle EOF
Merge branch 'master' of github.com:sluck2013/udpwork