summaryrefslogtreecommitdiffstats
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2020-05-28iproxy: Allow specifying source address for the listening socketGravatar Nikias Bassen2-16/+80
2020-05-18socket: Make sure fd is ready to write before calling send()Gravatar Nikias Bassen1-0/+4
2020-05-18socket: Add new functions socket_connect_addr() and socket_addr_to_string()Gravatar Nikias Bassen2-11/+187
2020-05-15socket: Make connecting sockets non-blockingGravatar Nikias Bassen1-11/+31
2019-08-03win32: Fix compilationGravatar Nikias Bassen1-0/+3
2019-06-13socket: Return -ETIMEDOUT when select() in socket_read_fd() reached the timeoutGravatar Nikias Bassen1-0/+4
2019-06-12common: Use portable pointer initialization and assert on allocation failureGravatar Nikias Bassen1-6/+16
2019-05-25Make sure device monitor thread can be cancelled without pthread_cancelGravatar Nikias Bassen1-2/+2
2019-05-22Add new usbmuxd_events_subscribe/unsubscribe functions with a context so it ↵Gravatar Nikias Bassen2-3/+4
can be used in different threads
2019-05-21socket: Return -ECONNRESET from socket_receive_timeout() instead of -EAGAIN ↵Gravatar Nikias Bassen1-1/+5
if peer closed the socket Returning -EAGAIN would indicate the caller can try again, but if the peer closed the socket that wouldn't make any sense. Thanks to sctol for reporting.
2019-05-21socket: Move initialization of timeval structure into retry loop in ↵Gravatar Nikias Bassen1-8/+7
socket_check_fd() Depending on the platform, select() may modify the timeval structure to indicate the amount left on the timer, so we reset the timeout before calling select() again. Thanks to sctol for reporting.
2019-02-27Use common thread implementation as used in other libimobiledevice librariesGravatar Nikias Bassen3-0/+218
2018-10-21socket: Make sure to use socket_close() really everywhereGravatar Nikias Bassen1-1/+1
2018-10-19Use socket_close instead of close to close a socketGravatar Frederik Carlier1-1/+1
2018-10-14Allow using non-standard usbmuxd socket address via environment variableGravatar Nikias Bassen1-31/+82
By using USBMUXD_SOCKET_ADDRESS environment variable, it is possible to make libusbmuxd connect to the specified address. The value needs to be in format ADDRESS:PORT (or UNIX:PATH on unix systems). If no port number is specified or parsing fails, the standard socket address (or unix domain socket file path) will be used silently.
2018-09-25Fix compile warningsGravatar BALATON Zoltan1-4/+4
2018-07-24common: Get rid of offsetof() and just use sizeof() to get size of unix ↵Gravatar Nikias Bassen1-21/+6
socket address
2018-05-15socket: Set socket options for usbmux connection to improve performanceGravatar Nikias Bassen1-0/+23
2015-12-29common: [security fix] Make sure sockets only listen locallyGravatar Joshua Hill1-2/+2
2014-10-03Move socket and collection functions to a convenience libraryGravatar Chow Loong Jin5-0/+641
This avoids the iproxy tool from relying on undocumented library ABI.