21 #ifndef __libmidi_ipmidi_port_h__
22 #define __libmidi_ipmidi_port_h__
26 #if defined(PLATFORM_WINDOWS)
28 #elif defined(__FreeBSD__) || defined(__OpenBSD__)
29 #include <netinet/in.h>
30 #include <sys/socket.h>
31 #if defined(__FreeBSD__)
32 #include <sys/_sockaddr_storage.h>
34 #include <arpa/inet.h>
35 #include <netinet/ip_carp.h>
36 #include <sys/types.h>
38 #include <sys/socket.h>
40 #include <net/route.h>
42 #include <arpa/inet.h>
46 #include <glibmm/threads.h>
62 IPMIDIPort (
int base_port = lowest_ipmidi_port_default,
const std::string& ifname = std::string());
70 int read (
byte *buf,
size_t bufsize);
74 static const int lowest_ipmidi_port_default = 21928;
79 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