fix bug initializing unused byte after status code data msg
correct ntohl/htonl bug
final version (no bug) v 1.0