more reliably read and write from the socket.
let the socket re-use local ports (prevent "already in use crap");
wrong var name.
Merge pull request #22 from tamagokun/server_stable

Server stable