You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrcpy/app/src
Romain Vimont 1038bad385 Make it work over tcpip
"adb reverse" currently does not work over tcpip (i.e. on a device
connected by "adb connect"):
<https://issuetracker.google.com/issues/37066218>

To work around the problem, if the call to "adb reverse" fails, then
fallback to "adb forward", and reverse the client/server roles.

Keep the "adb reverse" mode as the default because it does not involve
connection retries: when using "adb forward", the client must try to
connect successively until the server listens.

Due to the tunnel, every connect() will succeed, so the client must
attempt to read() to detect a connection failure. For this purpose, when
using the "adb forward" mode, the server initially writes a dummy byte,
read by the client.

Fixes <https://github.com/Genymobile/scrcpy/issues/5>.
6 years ago
..
android Implement keyboard/mouse control 7 years ago
sys Log socket errors 6 years ago
command.c Make it work over tcpip 6 years ago
command.h Make it work over tcpip 6 years ago
common.h Swap position/point names 6 years ago
controlevent.c Fix text input event segfault 6 years ago
controlevent.h Map right-click to BACK if screen is on 6 years ago
controller.c Implement clipboard paste 6 years ago
controller.h Replace SDL_net by custom implementation 6 years ago
convert.c Swap position/point names 6 years ago
convert.h Swap position/point names 6 years ago
decoder.c Unref the packet on error 6 years ago
decoder.h Replace SDL_net by custom implementation 6 years ago
device.c Send and recv all data when necessary 6 years ago
device.h Replace SDL_net by custom implementation 6 years ago
events.h Initial commit 7 years ago
fpscounter.c Add FPS counter 6 years ago
fpscounter.h Add FPS counter 6 years ago
frames.c Add FPS counter 6 years ago
frames.h Add FPS counter 6 years ago
icon.xpm Add window icon 6 years ago
inputmanager.c Map middle-click to HOME 6 years ago
inputmanager.h Add Ctrl+i shortcut to enable/disable FPS counter 6 years ago
lockutil.c Define macros wrappers for logs 6 years ago
lockutil.h Do not inline lockutil functions 7 years ago
log.h Define macros wrappers for logs 6 years ago
main.c Map middle-click to HOME 6 years ago
net.c Make it work over tcpip 6 years ago
net.h Make it work over tcpip 6 years ago
scrcpy.c Store serial in server instance 6 years ago
scrcpy.h Move screen-related code to screen.c 6 years ago
screen.c Always use the best render scale quality available 6 years ago
screen.h Improve startup time 6 years ago
server.c Make it work over tcpip 6 years ago
server.h Make it work over tcpip 6 years ago
strutil.c Initial commit 7 years ago
strutil.h Add missing include guards 6 years ago
tinyxpm.c Define macros wrappers for logs 6 years ago
tinyxpm.h Add missing include guards 6 years ago