25 #if defined(PLATFORM_WINDOWS)
27 #elif defined(__FreeBSD__) || defined(__OpenBSD__)
28 #include <netinet/in.h>
29 #include <sys/socket.h>
30 #if defined(__FreeBSD__)
31 #include <sys/_sockaddr_storage.h>
33 #include <arpa/inet.h>
34 #include <netinet/ip_carp.h>
35 #include <sys/types.h>
37 #include <sys/socket.h>
39 #include <net/route.h>
41 #include <arpa/inet.h>
45 #include <glibmm/threads.h>
61 IPMIDIPort (
int base_port = lowest_ipmidi_port_default,
const std::string& ifname = std::string());
69 int read (
byte *buf,
size_t bufsize);
73 static const int lowest_ipmidi_port_default = 21928;
78 struct sockaddr_in addrout;
XMLNode & get_state() const
void set_state(const XMLNode &)
void init(std::string const &, Flags)
void parse(samplecnt_t timestamp)
IPMIDIPort(const XMLNode &)
IPMIDIPort(int base_port=lowest_ipmidi_port_default, const std::string &ifname=std::string())
int write(const byte *msg, size_t msglen, timestamp_t timestamp)
int read(byte *buf, size_t bufsize)
bool open_sockets(int base_port, const std::string &ifname)
Glib::Threads::Mutex write_lock