gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 13/32: transport (quic): establish connection


From: gnunet
Subject: [gnunet] 13/32: transport (quic): establish connection
Date: Tue, 18 Jul 2023 17:16:02 +0200

This is an automated email from the git hooks/post-receive script.

marshall pushed a commit to branch master
in repository gnunet.

commit 7694de73b7cb10720a6c8b3fc04d9cac46164b27
Author: marshall <stmr@umich.edu>
AuthorDate: Fri Jun 9 10:45:26 2023 -0400

    transport (quic): establish connection
---
 src/transport/gnunet-communicator-quic.c | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/src/transport/gnunet-communicator-quic.c 
b/src/transport/gnunet-communicator-quic.c
index a710c80de..606b57e01 100644
--- a/src/transport/gnunet-communicator-quic.c
+++ b/src/transport/gnunet-communicator-quic.c
@@ -330,7 +330,10 @@ sock_read (void *cls)
                                     token, &token_len);
   if (rc < 0)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "failed to parse quic header: %d", 
rc);
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "failed to parse quic header: %d\n",
+                rc);
+    return;
   }
 
   /* look for connection in hashtable */
@@ -372,6 +375,27 @@ sock_read (void *cls)
     in_len,
   };
 
+  ssize_t process_pkt = quiche_conn_recv(conn, buf, rcvd, &recv_info);
+
+  if (0 > process_pkt)
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "quiche failed to process received packet: %zd\n",
+                process_pkt);
+    return;
+  }
+
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "quiche processed %zd bytes\n", process_pkt);
+
+  /**
+   * Check for connection establishment
+  */
+ if (quiche_conn_is_established(conn))
+ {
+    uint64_t s = 0;
+ }
+
   // if (rcvd > sizeof(struct UDPRekey))
   // {
   //   const struct UDPRekey *rekey;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]