change file format from dos to unix
set SO_REUSEADDR option to avoid TIME_WAIT state