1 /// 2 module drmi.ps.iface; 3 4 public import drmi.ps.types; 5 6 /// 7 interface Transport 8 { 9 /// 10 void init(string name); 11 /// 12 void connect(); 13 /// 14 bool connected(); 15 /// 16 void publish(string topic, const(ubyte)[] data, QoS qos); 17 /// 18 void subscribe(string topic, void delegate(string, const(ubyte)[]) dlg, QoS qos); 19 }