4315be1648
For the initial connection between the device and the computer, an adb tunnel is established (with "adb reverse" or "adb forward"). The device-side of the tunnel is a local socket having the hard-coded name "scrcpy". This may cause issues when several scrcpy instances are started in a few seconds for the same device, since they will try to bind the same name. To avoid conflicts, make the client generate a random UID, and append this UID to the local socket name ("scrcpy_01234567"). |
||
---|---|---|
.. | ||
adb.c | ||
adb.h | ||
adb_device.c | ||
adb_device.h | ||
adb_parser.c | ||
adb_parser.h | ||
adb_tunnel.c | ||
adb_tunnel.h |