gnutls_buffers.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
00003  *
00004  * Author: Nikos Mavrogiannopoulos
00005  *
00006  * This file is part of GNUTLS.
00007  *
00008  * The GNUTLS library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00021  * USA
00022  *
00023  */
00024 
00025 int MHD_gnutls_record_buffer_put (content_type_t type,
00026                                   MHD_gtls_session_t session, opaque * data,
00027                                   size_t length);
00028 int MHD_gnutls_record_buffer_get_size (content_type_t type,
00029                                        MHD_gtls_session_t session);
00030 int MHD_gtls_record_buffer_get (content_type_t type,
00031                                 MHD_gtls_session_t session, opaque * data,
00032                                 size_t length);
00033 ssize_t MHD_gtls_io_read_buffered (MHD_gtls_session_t, opaque ** iptr,
00034                                    size_t n, content_type_t);
00035 void MHD_gtls_io_clear_read_buffer (MHD_gtls_session_t);
00036 int MHD_gtls_io_clear_peeked_data (MHD_gtls_session_t session);
00037 
00038 ssize_t MHD_gtls_io_write_buffered (MHD_gtls_session_t, const void *iptr,
00039                                     size_t n);
00040 ssize_t MHD_gtls_io_write_buffered2 (MHD_gtls_session_t, const void *iptr,
00041                                      size_t n, const void *iptr2, size_t n2);
00042 
00043 int MHD_gtls_handshake_buffer_put (MHD_gtls_session_t session, opaque * data,
00044                                    size_t length);
00045 int MHD_gtls_handshake_buffer_clear (MHD_gtls_session_t session);
00046 int MHD_gtls_handshake_buffer_empty (MHD_gtls_session_t session);
00047 int MHD_gtls_handshake_buffer_get_ptr (MHD_gtls_session_t session,
00048                                        opaque ** data_ptr, size_t * length);
00049 
00050 #define MHD__gnutls_handshake_io_buffer_clear( session) \
00051         MHD_gtls_buffer_clear( &session->internals.handshake_send_buffer); \
00052         MHD_gtls_buffer_clear( &session->internals.handshake_recv_buffer); \
00053         session->internals.handshake_send_buffer_prev_size = 0
00054 
00055 ssize_t MHD_gtls_handshake_io_recv_int (MHD_gtls_session_t, content_type_t,
00056                                         MHD_gnutls_handshake_description_t,
00057                                         void *, size_t);
00058 ssize_t MHD_gtls_handshake_io_send_int (MHD_gtls_session_t, content_type_t,
00059                                         MHD_gnutls_handshake_description_t,
00060                                         const void *, size_t);
00061 ssize_t MHD_gtls_io_write_flush (MHD_gtls_session_t session);
00062 ssize_t MHD_gtls_handshake_io_write_flush (MHD_gtls_session_t session);
00063 
00064 size_t MHD_gtls_record_check_pending (MHD_gtls_session_t session);

Generated on Sun Jul 26 17:20:55 2009 for GNU libmicrohttpd by  doxygen 1.5.9