allow using SO_REUSEADDR and SO_REUSEPORT on TCP server #722

Merged
gaisser merged 4 commits from eive/fsfw:tcp_server_reuseaddr_reusesocket into development 2023-02-06 14:45:41 +01:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 9b05e8f274 - Show all commits

View File

@ -63,6 +63,8 @@ class TcpTmTcServer : public SystemObject, public TcpIpBase, public ExecutableOb
*/
int tcpTmFlags = 0;
std::string tcpPort = DEFAULT_SERVER_PORT;
/**
* Sets the SO_REUSEADDR option on the socket. See
* https://man7.org/linux/man-pages/man7/socket.7.html for more details. This option is
@ -77,7 +79,6 @@ class TcpTmTcServer : public SystemObject, public TcpIpBase, public ExecutableOb
*/
bool reusePort = false;
std::string tcpPort = DEFAULT_SERVER_PORT;
};
enum class ReceptionModes { SPACE_PACKETS };