Have net_stream_listen() return the port number in HOST byte order,
and KEEP the port in host byte order until absolutely necessary to change it back to network byte order.
Please register or sign in to comment
and KEEP the port in host byte order until absolutely necessary to change it back to network byte order.