platform_system_core/fastboot
David Pursell 815c7beae7 fastboot: implement UDP networking interface.
This CL creates a UdpSocket class that provides a simple unified
interface to send and receive UDP packets for all platforms. Nothing
uses this interface yet except for tests.

The eventual goal is to implement a UDP protocol for fastboot, but it
makes the code much simpler and more modular if we handle the low-level
networking here independently of our custom fastboot protocol.

Some of the Windows code is similar to adb. I'd like to create a
library to hold the common functionality, but it is going to be a
little delicate to separate out the features unique to adb (e.g. the
custom file descriptor system), and I don't want to risk breaking
something in adb before the holiday break, so I'm hoping to get this in
for now and merge them early next year.

Tests are included in this CL to exercise this functionality using a
loopback connection.

Bug: http://b/26154763.
Tests: `fastboot_test` loopback tests on Linux, Mac, and Windows 7.
Change-Id: I81d1b7ace8d864246b99f6c80b8e29f64b8aa375
2015-12-16 16:16:08 -08:00
..
Android.mk fastboot: implement UDP networking interface. 2015-12-16 16:16:08 -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: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
fastboot.cpp Share the new adb USB diagnostic code with fastboot. 2015-12-14 10:50:21 -08:00
fastboot.h fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
fastboot_protocol.txt Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07: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.h fastboot: implement UDP networking interface. 2015-12-16 16:16:08 -08:00
socket_test.cpp fastboot: implement UDP networking interface. 2015-12-16 16:16:08 -08:00
socket_unix.cpp fastboot: implement UDP networking interface. 2015-12-16 16:16:08 -08:00
socket_windows.cpp fastboot: implement UDP networking interface. 2015-12-16 16:16:08 -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