Fixed buffer overrun.
Fixed size_t vs sockelen_t issue on 64 bit OS.
Fixed size_t vs socklen_t issue on 64 bit OS.