htons()
man htonl (3): ホストバイトオーダーとネットワークバイトオーダーの間で値を変換する
htons()
関数は unsigned short integer
hostshort
を
ホストバイトオーダー
から
ネットワークバイトオーダー
に変換する。