platform_system_core/fastboot
David Pursell c742a7f174 fastboot: add Socket timeout detection.
UDP fastboot will require re-transmission in the case of datagrams
getting lost. This CL adds Socket functionality to easily distinguish
between a normal timeout and a socket failure.

I also found some Windows docs that indicate sockets may become
invalid after a call to recv() times out. This has never occurred in
my testing, but to be safe this switches the timeout implementation
to use select() instead of SO_RCVTIMEO.

Bug: http://b/26154914
Change-Id: Id7b598f8aea5df1a3676d24702b489042d5f9e3a
2016-02-05 13:22:06 -08:00
..
.clang-format fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
Android.mk fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
bootimg_utils.cpp Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
bootimg_utils.h Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
engine.cpp fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot.cpp fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
fastboot.h fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot_protocol.txt Fix the version number in the fastboot documentation. 2016-02-03 14:30:01 -08:00
fs.cpp Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
fs.h Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
protocol.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
socket.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket.h fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_mock.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_mock.h fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_test.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
tcp.cpp fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
tcp.h fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
tcp_test.cpp fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
transport.h Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
usb.h fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_linux.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_osx.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_windows.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usbtest.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
util.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_linux.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_osx.cpp Move fastboot's Mac OS code to C++. 2015-06-24 11:17:28 -07:00
util_windows.cpp Move fastboot's Windows code to C++. 2015-06-24 10:48:43 -07:00