generic windows udp bridge working as well
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user