Lines Matching +full:closed +full:- +full:loop
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
102 * Loop through all the possible addresses for the server and find one
107 * Create a TCP socket. We could equally use non-OpenSSL calls such
114 if (sock == -1)
120 sock = -1;
127 sock = -1;
134 if (sock != -1) {
151 have blocking behaviour. See L<ossl-guide-quic-introduction(7)> for further
177 * passing BIO_CLOSE here the socket will be automatically closed when
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
284 * number of bytes that we read. The data could be non-printable or
294 * Check whether we finished the while loop above normally or as the
309 * reset - or some failure occurred on the underlying connection.
318 printf("Connection closed\n");
319 /* Connection is already closed. Skip SSL_shutdown() */
362 * closed.
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.