mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
e77f187274
The C standard gurantees that an unsigned short is at least up to 65535 huge. Enough to store every TCP port. Also the parameter PORT is overgiven to the `htons()` function which assumes that the parameter is of type `uint16_t` which unsigned short is on most platforms.