1
0
forked from fsfw/fsfw

generic windows udp bridge working as well

This commit is contained in:
2021-03-21 14:38:28 +01:00
parent b5a14bb9df
commit 078116c7be
4 changed files with 28 additions and 29 deletions

View File

@ -65,19 +65,11 @@ ReturnValue_t UdpTmTcBridge::initialize() {
#endif
struct addrinfo *addrResult = nullptr;
struct addrinfo hints = { 0 };
struct addrinfo hints = {};
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_UDP;
//#ifdef _WIN32
// /* See:
// https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo
// and
//
// for information about AI_PASSIVE. */
// hints.ai_flags = AI_PASSIVE;
//#endif
/* Set up UDP socket:
https://en.wikipedia.org/wiki/Getaddrinfo