f1nal3 / Juniorgram

A C++ messenger for learning purposes in EPAM Brest C++ R&D Lab
14 stars 1 forks source link

Improvements to server functionality #638

Closed memorisecodead closed 1 year ago

memorisecodead commented 1 year ago

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.