summaryrefslogtreecommitdiffstats
path: root/tools/idevicedebugserverproxy.c
AgeCommit message (Collapse)AuthorFilesLines
2022-04-30tools: Use getopt for option parsing in all toolsGravatar Nikias Bassen1-49/+56
2022-03-29idevicedebugserverproxy: Allow binding to any available portGravatar Elias Naur1-8/+18
To eliminate crosstalk between multiple proxies and their clients, add support for binding to any free port provided by the OS to idevicedebugserverproxy. To bind to any port, leave out the port argument to idevicedebugserverproxy. In that case, the proxy will print out a line with the port so clients can connect to it. This is useful for a CI macOS host with multiple iDevices connected, and where many independent tests each want their own proxy instance connected to a particular device.
2021-09-01Remove common code in favor of new libimobiledevice-glueGravatar Nikias Bassen1-2/+2
2021-02-17Remove redundent `select` call from idevicedebugserverproxy.cGravatar Nisarg Jhaveri1-9/+2
- Turns out `socket_receive` anyway internally calls `select` again. Use `socket_receive_timeout` instead. - Remove logging for timeout in socket.c as well, it is not really an error condition
2021-02-03tools: Flip order of winsock2.h and windows.h in idevicedebugserverproxy to ↵Gravatar Nikias Bassen1-1/+1
get rid of compiler warning
2021-02-03tools: Fix delays in idevicedebugserverproxy when using SSLGravatar Nikias Bassen1-23/+23
Turns out using select() wasn't the best idea for the debugserver connection. libimobildevice already does select internally, and doing it here again would cause delays especially when transferring larger amounts of data.
2021-02-03tools: Fix idevicedebugserverproxy compilation on WindowsGravatar Nikias Bassen1-0/+5
2021-02-01tools: Improve idevicedebugserverproxy with select() and less threadsGravatar Nikias Bassen1-135/+61
2020-12-30common: Merge socket changes from libusbmuxdGravatar Nikias Bassen1-1/+1
2020-06-05tools: Unify --network command line switch and add it where missingGravatar Nikias Bassen1-3/+9
2020-06-05tools: Add --version command line switchGravatar Nikias Bassen1-2/+9
2020-06-04Unify usage output in all tools and add bugreport URLGravatar Martin Szulecki1-2/+6
2019-06-11common: Update thread.c/.h to match the one from libusbmuxdGravatar Nikias Bassen1-3/+3
2018-10-01tools: Remove length check on device UDID arguments to support newer devicesGravatar Nikias Bassen1-2/+2
The 40 characters length check on the device UDID made newer devices unusable with the libimobiledevice tools and was actually redundant since an invalid UDID will always fail to resolve. This commit removes the length check alltogether (but makes sure it is not an empty string "").
2018-07-24idevicedebugserverproxy: Fix possible use-after-freeGravatar Bastien Nocera1-1/+1
When creating a connection handler thread fails, and we close the server_fd, do not loop back to the start of the loop trying to run socket_accept() on a closed fd, but break out of the loop instead.
2015-10-06tools: Use PACKAGE_URL define for homepage project links in usage outputGravatar Martin Szulecki1-1/+5
2015-01-28Remove trailing whitespace errors from all filesGravatar Martin Szulecki1-3/+3
2015-01-27tools: Add link to project homepage on usage outputGravatar Martin Szulecki1-0/+1
2015-01-22idevicedebugserverproxy: Properly handle server shutdownGravatar Nikias Bassen1-45/+75
2015-01-16idevicedebugserverproxy: Use debugserver service and fix reconnecting to itGravatar Martin Szulecki1-71/+46
As the debugserver exits after a detach or disconnect, we need to ensure to start it again upon a new client connection.
2015-01-13thread: Introduce thread_new and thread_free to cover handle leaks on WIN32Gravatar Martin Szulecki1-3/+9
2014-10-11tools: Make sure to print an error when lockdown connection failsGravatar Nikias Bassen1-2/+3
2013-03-20move thread and socket code to "common" subdirGravatar Nikias Bassen1-2/+2
2013-03-14global: make sure to check service before checking service->port to prevent ↵Gravatar Nikias Bassen1-1/+1
crashes
2013-02-26Refactor port number use into service descriptor to enable SSL for servicesGravatar Martin Szulecki1-5/+10
This is a major change which breaks API but is required in order to support SSL communication for services as used by network connections.
2013-02-23idevicedebugserverproxy: Fix irritating and wrong debug messageGravatar Martin Szulecki1-1/+1
2012-11-29tools: use pointer instead of static buffer for UDID since it can start with '0'Gravatar Nikias Bassen1-16/+8
2012-11-29idevicedebugserver: fix small bug in error messageGravatar Nikias Bassen1-1/+1
2012-10-21Add new idevicedebugserverproxy toolGravatar Martin Szulecki1-0/+374