- For writing sin_port, htons() must be used.