connect method
Implementation
ffi.Pointer<dc_iostream_t> connect(
ComputerTransport transport, ffi.Pointer<dc_descriptor_t> computer) {
switch (transport) {
case ComputerTransport.serial:
return _connectSerial(computer);
case ComputerTransport.usb:
return _connectUsb(computer);
case ComputerTransport.usbhid:
return _connectUsbHid(computer);
default:
throw UnimplementedError();
}
}