Commit graph

6 commits

Author SHA1 Message Date
Zach Klippenstein 9f7d11a3bc Refactored ClientConfig into a Server interface.
* StartServer is now a method on Server.
* What used to be Dialer.Dial is now Server.Dial.
* Server.Dial handles trying to start the server if the initial connection fails.
* Dialer now dials a network address.
* All types that took a Dialer now take a Server.
* Server now has tests!
2016-01-10 14:01:58 -08:00
Zach Klippenstein cb7e06bdb9 OpenRead will now return an error if the server returns an error when trying to open a file.
All sync status reads now also check for failure status,
using the same logic as the normal Scanner (the only difference
being that for normal scanners, length is encoded as a hex
string, but for sync scanners it's in binary little-endian).
2015-12-28 19:46:14 -08:00
Zach Klippenstein b966d11cda Randomly backoff restarting adb server from DeviceWatcher. 2015-11-29 10:41:10 -08:00
Zach Klippenstein af4b3ddcf2 DeviceWatcher events are more strongly typed and added higher-level methods. 2015-09-07 21:19:59 -07:00
Zach Klippenstein 92af9f1b15 Removed unused err return value from NewDeviceWatcher. 2015-09-05 23:24:02 -07:00
Zach Klippenstein 164ab27d25 Implemented device event watcher and improved errors. 2015-07-19 12:45:24 -07:00