Lines Matching +full:multi +full:- +full:socket

6 demos/guide/quic-client-block.c
12 ossl-guide-quic-client-block
13 - OpenSSL Guide: Writing a simple blocking QUIC client
20 QUIC is non-standard and will not be supported by real world servers. This is
25 (see L<ossl-guide-libraries-introduction(7)>, L<ossl-guide-tls-introduction(7)>
26 and L<ossl-guide-quic-introduction(7)>); and that you know how to
31 L<ossl-guide-tls-client-block(7)>. Only the differences between that client and
36 tutorial will discuss how to write a multi-stream client (see
37 L<ossl-guide-quic-multi-stream(7)>).
41 C<quic-client-block.c>. It is also available online at
42 L<https://github.com/openssl/openssl/blob/master/demos/guide/quic-client-block.c>.
46 In the TLS tutorial (L<ossl-guide-tls-client-block(7)>) we created an B<SSL_CTX>
60 mode", see L<ossl-guide-quic-introduction(7)>). For this tutorial we will be
85 =head2 Creating the socket and BIO
88 TLS uses TCP while QUIC uses UDP. The way that the QUIC socket is created in our
107 * Create a TCP socket. We could equally use non-OpenSSL calls such
108 * as "socket" here for this and the subsequent connect and close
114 if (sock == -1)
117 /* Connect the socket to the server's address */
120 sock = -1;
127 sock = -1;
134 if (sock != -1) {
148 Firstly, we set the socket into nonblocking mode. This must always be done for
151 have blocking behaviour. See L<ossl-guide-quic-introduction(7)> for further
163 As for our TLS client, once the socket has been created and connected we need to
168 /* Create a BIO to wrap the socket */
176 * Associate the newly created BIO with the underlying socket. By
177 * passing BIO_CLOSE here the socket will be automatically closed when
179 * case you must close the socket explicitly when it is no longer
197 ALPN (Application-Layer Protocol Negotiation) is a feature of TLS that enables
201 L<https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xml#alpn-proto…
204 simple client that we developed in L<ossl-guide-tls-client-block(7)> did not use
224 is being connected to. In L</Creating the socket and BIO> above we saved that
284 * number of bytes that we read. The data could be non-printable or
309 * reset - or some failure occurred on the underlying connection.
386 See L<ossl-guide-quic-multi-stream(7)> to read a tutorial on how to modify the
391 L<ossl-guide-introduction(7)>, L<ossl-guide-libraries-introduction(7)>,
392 L<ossl-guide-libssl-introduction(7)>, L<ossl-guide-tls-introduction(7)>,
393 L<ossl-guide-tls-client-block(7)>, L<ossl-guide-quic-introduction(7)>
397 Copyright 2023-2025 The OpenSSL Project Authors. All Rights Reserved.