query method
Implementation
void query(int type, Function? listener, {Uint8List? pld, int? id}) {
// Send a query
final (id2, buf) = _compose(type: type, pld: pld, id: id);
if (listener != null) {
addIdListener(id2, listener);
}
// test if write is null, then invoke
if (write != null) {
write!(buf);
}
}