toxcore/toxcore
jfreegman 072e3beb3f
fix: issues with packet broadcast error reporting
commit 5b9c420c introduced some undesirable behaviour with packet send
functions returning error when they shouldn't. We now only return an
error if the packet fails to be added to the send queue or cannot
be wrapped/encrypted. We no longer error if we fail to send the packet
over the wire, because toxcore will keep trying to re-send the packet
until the connection times out.

Additionally, we now make sure that our packet broadcast functions
aren't returning an error when failing to send packets to peers
that we have not successfully handshaked with yet, since this is
expected behaviour.
2024-01-11 14:54:58 -05:00
..
events
announce.c
announce.h
attributes.h
bin_pack_test.cc refactor: Protect array unpacking against invalid lengths. 2022-04-05 20:52:47 +00:00
bin_pack.c
bin_pack.h
bin_unpack.c refactor: Add a bin_unpack_bin_max for max-length arrays. 2023-11-12 00:57:44 +00:00
bin_unpack.h
BUILD.bazel
ccompat.c
ccompat.h
crypto_core_test_util.cc
crypto_core_test_util.hh
crypto_core_test.cc
crypto_core.c
crypto_core.h
DHT_fuzz_test.cc
DHT_test_util.cc
DHT_test_util.hh
DHT_test.cc cleanup: Some more test cleanups, removing overly smart code. 2024-01-10 12:42:37 +00:00
DHT.c refactor: Minor refactoring of get_close_nodes functions. 2024-01-10 20:12:04 +00:00
DHT.h
forwarding_fuzz_test.cc
forwarding.c
forwarding.h
friend_connection_test.cc
friend_connection.c cleanup: Move all vptr-to-ptr casts to the beginning of a function. 2023-12-30 01:45:23 +00:00
friend_connection.h
friend_requests.c
friend_requests.h
group_announce_fuzz_test.cc refactor: Add mem module to allow tests to override allocators. 2023-08-30 22:55:05 +00:00
group_announce_test.cc
group_announce.c
group_announce.h
group_chats.c
group_chats.h
group_common.h
group_connection.c
group_connection.h
group_moderation_fuzz_test.cc
group_moderation_test.cc
group_moderation.c
group_moderation.h
group_onion_announce.c
group_onion_announce.h
group_pack.c
group_pack.h
group.c
group.h
LAN_discovery.c
LAN_discovery.h
list_test.cc
list.c refactor: Assign malloc return to a local variable first. 2024-01-10 11:46:41 +00:00
list.h cleanup: Make *_free functions nullable. 2022-04-02 21:28:26 +00:00
logger.c
logger.h
Makefile.inc
mem_test.cc
mem.c
mem.h
Messenger.c
Messenger.h
mono_time_test.cc
mono_time.c refactor: Assign malloc return to a local variable first. 2024-01-10 11:46:41 +00:00
mono_time.h refactor: Store time in Mono_Time in milliseconds. 2023-11-17 05:20:29 +00:00
net_crypto.c
net_crypto.h
network_test_util.cc
network_test_util.hh refactor: Use operator== for equality tests of Node_format. 2024-01-11 13:32:01 +00:00
network_test.cc
network.c
network.h
onion_announce.c cleanup: Make all .c files include the headers they need. 2023-12-27 01:21:47 +00:00
onion_announce.h
onion_client.c
onion_client.h
onion.c cleanup: Make all .c files include the headers they need. 2023-12-27 01:21:47 +00:00
onion.h
ping_array_test.cc
ping_array.c refactor: Assign malloc return to a local variable first. 2024-01-10 11:46:41 +00:00
ping_array.h
ping.c cleanup: Make all .c files include the headers they need. 2023-12-27 01:21:47 +00:00
ping.h
shared_key_cache.c
shared_key_cache.h perf: Slightly reduce bandwidth usage when there are few nodes. 2023-12-18 16:23:45 +00:00
state.c
state.h Merge the remainder of the new groupchats implementation 2022-09-22 11:16:08 -04:00
TCP_client.c cleanup: Make all .c files include the headers they need. 2023-12-27 01:21:47 +00:00
TCP_client.h
TCP_common.c
TCP_common.h
TCP_connection_test.cc
TCP_connection.c
TCP_connection.h
TCP_server.c
TCP_server.h
test_util_test.cc test: Add more unit tests for add_to_list. 2024-01-10 02:58:13 +00:00
test_util.cc
test_util.hh
timed_auth.c
timed_auth.h
tox_api.c
tox_dispatch.c
tox_dispatch.h
tox_events_fuzz_test.cc
tox_events_test.cc
tox_events.c
tox_events.h
tox_private.c
tox_private.h
tox_struct.h
tox_test.cc
tox_unpack.c
tox_unpack.h refactor: Use enum-from-int rule from tokstyle. 2023-12-19 20:53:15 +00:00
tox.c
tox.h
util_test.cc
util.c
util.h