We need to improve the server, namely to check if the port is correct.
This is also necessary to test the server.
If you specify a port value greater than uint16_t type, then a type overflow will occur, thus the server will start with a random port in the range of uint16_t type, depending on the system machine on which the server is starting.
What we need to do:.
Expand the type from uint16_t to uint32_t.
Perform a check on the port range.
We need to improve the server, namely to check if the port is correct.
This is also necessary to test the server.
If you specify a port value greater than uint16_t type, then a type overflow will occur, thus the server will start with a random port in the range of uint16_t type, depending on the system machine on which the server is starting.
What we need to do:. Expand the type from uint16_t to uint32_t. Perform a check on the port range.