[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 24/32: transport (quic): remove gen_streamid
From: |
gnunet |
Subject: |
[gnunet] 24/32: transport (quic): remove gen_streamid |
Date: |
Tue, 18 Jul 2023 17:16:13 +0200 |
This is an automated email from the git hooks/post-receive script.
marshall pushed a commit to branch master
in repository gnunet.
commit 7c4b88b1949f5e7355714cbf518b9019e2f107f6
Author: marshall <stmr@umich.edu>
AuthorDate: Wed Jun 28 10:05:11 2023 -0400
transport (quic): remove gen_streamid
---
src/transport/gnunet-communicator-quic.c | 28 ++--------------------------
1 file changed, 2 insertions(+), 26 deletions(-)
diff --git a/src/transport/gnunet-communicator-quic.c
b/src/transport/gnunet-communicator-quic.c
index 71aee3826..0a716302f 100644
--- a/src/transport/gnunet-communicator-quic.c
+++ b/src/transport/gnunet-communicator-quic.c
@@ -79,31 +79,6 @@ struct QUIC_header
size_t token_len;
};
-/**
- * @param stream_type ...
- * Generate a unique stream ID with indicated stream type
- * quiche library has QUICHE_MAX_CONN_ID_LEN = 20?
-*/
-static uint64_t
-gen_streamid ()
-{
- uint64_t sid;
- // sid = GNUNET_CRYPTO_random_u64(GNUNET_CRYPTO_QUALITY_STRONG,
STREAM_ID_MAX);
- /**
- * Ensure each peer does NOT reuse one of their own stream ID
- */
-
- /**
- * Modify LSB to represent stream type:
- * 0x00: client-initiated, bidirectional
- * 0x01: server-initiated, bidirectional
- * 0x02: client-initiated, unidirectional
- * 0x03: server-initiated, unidirectional
- */
- return sid;
-}
-
-
/**
* Given a quiche connection and buffer, recv data from streams and store into
buffer
* ASSUMES: connection is established to peer
@@ -262,7 +237,7 @@ flush_egress (struct quic_conn *conn)
sent = GNUNET_NETWORK_socket_sendto (udp_sock, out, written,
(struct sockaddr *) &send_info.to,
- &send_info.to_len);
+ send_info.to_len);
if (sent != written)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -287,6 +262,7 @@ do_shutdown (void *cls)
"do_shutdown\n");
GNUNET_CONTAINER_multihashmap_destroy (conn_map);
+ quiche_config_free (config);
if (NULL != read_task)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] 13/32: transport (quic): establish connection, (continued)
- [gnunet] 13/32: transport (quic): establish connection, gnunet, 2023/07/18
- [gnunet] 18/32: transport (quic): check for closed connections, gnunet, 2023/07/18
- [gnunet] 27/32: transport (quic): Add some pointers, gnunet, 2023/07/18
- [gnunet] 17/32: transport (quic): create connection functionality, gnunet, 2023/07/18
- [gnunet] 16/32: transport (quic): mint tokens, gnunet, 2023/07/18
- [gnunet] 20/32: transport (quic): cleanup, create header object, gnunet, 2023/07/18
- [gnunet] 19/32: transport (quic): minor cleanup, remove commented code, gnunet, 2023/07/18
- [gnunet] 22/32: transport (quic): token validation check, gnunet, 2023/07/18
- [gnunet] 23/32: transport (quic): get random block for cid, gnunet, 2023/07/18
- [gnunet] 25/32: transport (quic): comm connect, gnunet, 2023/07/18
- [gnunet] 24/32: transport (quic): remove gen_streamid,
gnunet <=
- [gnunet] 21/32: transport (quic): fix compiler warnings, gnunet, 2023/07/18
- [gnunet] 26/32: transport (quic): add functions for mq handling, gnunet, 2023/07/18
- [gnunet] 31/32: transport (quic): create peermap using address, gnunet, 2023/07/18
- [gnunet] 32/32: transport (quic): uncrustify, gnunet, 2023/07/18
- [gnunet] 30/32: transport(quic): cleanup conn, gnunet, 2023/07/18
- [gnunet] 29/32: transport (quic): mq handling fixes, gnunet, 2023/07/18
- [gnunet] 28/32: create PeerAddress, gnunet, 2023/07/18