mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
different modes for UDP writer, allow to select network
This commit is contained in:
@@ -17,4 +17,9 @@ class GwSocketHelper{
|
||||
if (setsockopt(socket, IPPROTO_TCP, TCP_KEEPCNT, &val, sizeof(val)) != ESP_OK) return false;
|
||||
return true;
|
||||
}
|
||||
static bool isMulticast(const String &addr){
|
||||
in_addr iaddr;
|
||||
if (inet_pton(AF_INET,addr.c_str(),&iaddr) != 1) return false;
|
||||
return IN_MULTICAST(ntohl(iaddr.s_addr));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user