1
0
forked from fsfw/fsfw

added generic error handler

This commit is contained in:
2021-03-08 23:14:10 +01:00
parent 4e5e6e145e
commit 8be4f45969
4 changed files with 47 additions and 19 deletions

View File

@ -24,7 +24,12 @@ private:
std::vector<uint8_t> receptionBuffer;
int tcpSockOpt = 0;
void handleSocketError();
enum class ErrorSources {
SOCKET_CALL,
SETSOCKOPT_CALL
};
void handleError(ErrorSources errorSrc);
};
#endif /* FSFW_OSAL_WINDOWS_TCWINTCPSERVER_H_ */