Richard Fuchs
1efaaf0a27
MT#55283 remove dst endpoint from sendmsg args
...
Change-Id: I76f6b6a8afaf5657599877f6c7c8f25011c7ed1e
1 week ago
Richard Fuchs
632a9cfdc7
MT#55283 move sockaddr_storage into req obj
...
Include "direct" helper function for sendmsg without explicit
destination
Change-Id: I187fecedd44b7fe509c6cd4f07e74d1311b5f5e2
1 week ago
Richard Fuchs
a3e8d1a832
MT#55283 remove unused socket abstractions
...
Change-Id: I593d4c962b86129d14e883679364a8a4d82f38f1
1 week ago
Richard Fuchs
a190d56a53
MT#55283 save TOS in socket struct
...
Change-Id: Id9ad98ac39b2ba043f5c4465f04f42c98f89e3a7
4 months ago
Richard Fuchs
df6ac133d3
MT#55283 compile fix for older glibc
...
Change-Id: Ia300c32cd9d68833d0fa90763df7d34c3fe465d5
1 year ago
Richard Fuchs
c0b245b979
MT#55283 support SO_TIMESTAMP_OLD
...
Supports obscure situations where the old 32-bit timestamp is returned
Change-Id: I8423cd04baa9fd49e254d88d17e3e609ee5a20bb
1 year ago
Richard Fuchs
f34786dade
MT#55283 convert media_packet to int64_t
...
Change-Id: I4b1da113cf01d34473027987d4ee60215655fdec
1 year ago
Richard Fuchs
b2599aba54
MT#61625 add getsockname abstraction
...
Change-Id: Ib89e235c3b8ea5a1038d09dfd8a7895d5753401c
2 years ago
Richard Fuchs
af789073a7
MT#61625 add socket_rcvtimeout helper
...
Change-Id: I17de1f5948e64712fb60bd96708c07ea87cfe010
2 years ago
Richard Fuchs
09c4c84d03
MT#55283 move helpers out of the way
...
Change-Id: I207d000c7c2cfca9c139518cc0111355b6414d60
2 years ago
Richard Fuchs
3662b74009
MT#55283 convert tos to bool
...
Change-Id: Icf424a04b79923c239f1ccdbb79115b080a84462
2 years ago
Richard Fuchs
ad11e98903
MT#55283 convert pktinfo to bool
...
Change-Id: I4fa705063400f119568f93fa037a51adabbe9c40
2 years ago
Richard Fuchs
bf08339f5a
MT#55283 convert timestamping to bool
...
Change-Id: If87a80917396fa397e6d0641c38546bd31a10a31
2 years ago
Richard Fuchs
df64eb09a4
MT#55283 convert accept to bool
...
Change-Id: Ie4e1415fd35fa6b4a3ab95ed80c2ab3047b902bc
2 years ago
Richard Fuchs
55ccc6bbe1
MT#55283 convert listen to bool
...
Change-Id: I18ab74fcd1e5ca330619a357d6ee080be45b2ab5
2 years ago
Richard Fuchs
88bbfc2255
MT#55283 convert connect to bool
...
Change-Id: I8086c72713b79c29d9cfd6822610e3580df38cc8
2 years ago
Richard Fuchs
9808a5f26c
MT#55283 convert eq to bool
...
Change-Id: I62460fe2184aaf8bd6e84957c46274c04bd672c4
2 years ago
Richard Fuchs
eb172ce029
MT#55283 convert bind to bool
...
Change-Id: Ic127aabf04e3185293e77194953f4eb93dd1a771
2 years ago
Richard Fuchs
23ca436a1e
MT#55283 convert sockaddr2endpoint to bool
...
Change-Id: I4d2fb4ea29284ea421920e514ec0d80392e1a7a0
2 years ago
Richard Fuchs
c621061cc7
MT#55283 convert sockaddr2endpoint to bool
...
Change-Id: Ib1e2ff18d8a64f71116fe5ce886c593cd29b2d51
2 years ago
Richard Fuchs
3337059585
MT#55283 convert endpoint_parse_any_str to bool
...
Change-Id: Id7ba272643f3578fbf12647444342f979b3d864f
2 years ago
Richard Fuchs
b5085cf1c7
MT#55283 convert ipv46_any_convert to bool
...
Change-Id: I7671aca8592ca02b6005c5e94aae3d18444fd7dc
2 years ago
Richard Fuchs
80f7c20429
MT#55283 convert sockaddr_getaddrinfo to bool
...
Change-Id: I75e04bdda3b54fd9f7cbe9d6ff8c978e2bb2c2d1
2 years ago
Richard Fuchs
5f418146c4
MT#55283 convert endpoint_parse_any_getaddrinfo_full to bool
...
Change-Id: I74dbdcb6798203306652078997b74bdaacfb8526
2 years ago
Richard Fuchs
fbcdaaee4a
MT#55283 convert endpoint_parse_port_any to bool
...
Change-Id: Iede44b1652ac749d0e0fbd31acb0e42bca8641c3
2 years ago
Richard Fuchs
86a825d3d4
MT#55283 convert endpoint_parse_any_getaddrinfo to bool
...
Change-Id: I81bb829ab4ccb8005109c2c1c874e83c3340a053
2 years ago
Richard Fuchs
3e5cf09486
MT#55283 convert endpoint_parse_any_getaddrinfo_alt to bool
...
Change-Id: I6e4437ce60065205c13271b96ee6b346af0a24fa
2 years ago
Richard Fuchs
ce68a760db
MT#55283 convert sockaddr_getaddrinfo_alt to bool
...
Change-Id: I0e071572b22977cbcd06aa1836b4b91c94de263b
2 years ago
Richard Fuchs
927c85e5ff
MT#55283 convert endpoint_parse_any to bool
...
Change-Id: Ia6fd64615591efe1dfd6de4cc70a5642ea777331
2 years ago
Richard Fuchs
4b13ada4e5
MT#55283 convert sockaddr_parse_str to bool
...
Change-Id: Idf1ab8653c14f8bf4fe0f1cc9f19054ed2de7157
2 years ago
Richard Fuchs
3cce4ac230
MT#55283 convert sockaddr_parse_any_str to bool
...
Change-Id: Iaf9179bf1f55774bc9c63fd1238155f7ff3b7570
2 years ago
Richard Fuchs
81899d5483
MT#55283 convert sockaddr_parse_any to bool
...
Change-Id: I0bd04ab7f12d31feab469c7b3a6ac8df591ec8cd
2 years ago
Richard Fuchs
7599e5c375
MT#55283 convert close_socket to bool
...
Change-Id: I290012391ba1fa2c6c550614e054181de6e0b94e
2 years ago
Richard Fuchs
050cdd3ae1
MT#55283 convert addr_parse to bool
...
Change-Id: I3ef56f827c888c347ea2a83884c10e1e94d7bd83
2 years ago
Richard Fuchs
0a034ecde2
MT#55283 convert reset_socket to bool
...
Change-Id: I8f59d0d44186a0e41f2a044b24f2bf13714ebf16
2 years ago
Richard Fuchs
386f1d50cd
MT#55283 convert open_v46_socket to bool
...
Change-Id: I174a08cbed3f6ac856bf29458ee3c81ca2947de9
2 years ago
Richard Fuchs
c2ba54e615
MT#55283 convert open_socket to bool
...
Change-Id: I715afc937f6b1cbc124ff14a0428f781f58cd050
2 years ago
Richard Fuchs
e7a0bad24e
MT#55283 convert is_addr_unspecified to bool
...
Change-Id: I764b0c1129e4ce909eb95fd7c3251548f5c948ae
2 years ago
Richard Fuchs
2be0844d6d
MT#55283 convert sockaddr_print_gstring to bool
...
Change-Id: Icc5478ef30e4f5823e3cee8f479759df928c7b96
2 years ago
Richard Fuchs
854ef3f0fc
MT#55283 remove unused functions
...
Change-Id: I5377ff885315c6ba08c5f942b0c606dbd1edd478
2 years ago
Richard Fuchs
96995ae680
MT#55283 convert endpoint_print to bool
...
Change-Id: I4b1ccfe3bc9412cd4f0d8366b4de8bb84d75c0c4
2 years ago
Richard Fuchs
5a09c9c329
MT#55283 convert sockaddr_print_port to bool
...
Change-Id: I68d8dfdeca5b5236e1dbc1cfa87558142bc8f8ee
2 years ago
Richard Fuchs
c85eca8ea9
MT#55283 convert addr_print etc to bool
...
Change-Id: I2d5b48ea69452ebdc84e65ae309d7df6c314f865
2 years ago
Donat Zenichev
1eb0c5e13e
MT#61556 redis: re-resolve when re-connecting
...
When re-connecting to the remote redis server
try to re-resolve if the redist hostname
was an FQDN and not IP address.
Change-Id: Ie80e1d1a1ea76811c54123201ad4fe8cb64fc748
2 years ago
Richard Fuchs
26136610a0
MT#55283 add _print_gstring helpers
...
Use a small stack buffer instead of obtaining a thread-local one when
writing directly to a GString.
Change-Id: Ia15b8eee365ddb14e35eddc72358c4793ccba7d9
2 years ago
Richard Fuchs
a140d83975
MT#55283 enforce hash table types in callbacks
...
For typed hash tables, enforce the correct type in the arguments to the
hashing and equality functions.
Adapt existing affected callback functions and change their arguments
from void* to the respective types.
Add reverse casts to GHashFunc and GEqualFunc in instances where these
functions are used in non-typed hash tables (that should be converted at
a later point).
Add convenience macro to create typed wrapper functions for hash tables
that use "direct" hashing (i.e. the pointer value).
Add wrappers for existing GLib functions that have generic arguments so
that they can be used in typed hash tables.
Change-Id: I43bb32969208f4aae49584d95c0df8353df6e2a0
2 years ago
Richard Fuchs
826765211d
MT#55283 turn recvmsg cmsg parsing into macro
...
Usage is a bit awkward but this makes it possible the reuse the same
code in other contexts.
Change-Id: Ibfad7955ffe6fda065f363af3d93b520b2a26081
2 years ago
Richard Fuchs
58cbd2f21c
MT#55283 delegate closing sockets to poller
...
To support asynchronous pollers which may hold references on underlying
sockets, let the poller close the socket after it has released its
references. This prevents cases of file descriptor re-use while an
underlying socket is still open.
Add reset_socket() to be used in place of close_socket() which does the
same thing except the actual closing of the socket.
Add poller_del_item_callback() for cases where more action than just
closing the file descriptor is needed.
Change-Id: Iefda1487ecb89263729120ecb964436dd79b2a0e
2 years ago
Richard Fuchs
73f1037720
MT#55283 use typed GQueue for socket/sfd lists
...
Change-Id: I0d61e0c8d9ccc23b038dd560d8ff876e550d2c05
3 years ago
Richard Fuchs
1e4efc60db
MT#57977 initialise cmsg buffer
...
Older glibc uses a strange (and seemingly broken) approach to verifying
the cmsg structures by inspecting the *next* cmsg header and using its
length to see if there is enough space in the buffer. Since we're
constructing the cmsg list, at this point there is no next cmsg yet,
therefore causing spurious failures of CMSG_NXTHDR.
Work around this by initialising the entire buffer first.
See 9c443ac455
closes #1720
Change-Id: I00ce9bc5686ab0c1612aff51f1b3e75d8cbd8a69
3 years ago