3 * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
8 * Public License. A copy of this license is available at
9 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10 * top-level directory of the distribution.
13 * lber_pvt.h - Header for ber_pvt_ functions. These are meant to be used
14 * by the OpenLDAP distribution only.
24 typedef struct sockbuf_buf {
34 LBER_F( BER_LOG_PRINT_FN ) ber_pvt_log_print;
37 ber_pvt_log_printf LDAP_P((
41 ... )) LDAP_GCCATTR((format(printf, 3, 4)));
47 ber_pvt_sb_do_write LDAP_P(( Sockbuf_IO_Desc *sbiod, Sockbuf_Buf *buf_out ));
50 ber_pvt_sb_buf_init LDAP_P(( Sockbuf_Buf *buf ));
53 ber_pvt_sb_buf_destroy LDAP_P(( Sockbuf_Buf *buf ));
56 ber_pvt_sb_grow_buffer LDAP_P(( Sockbuf_Buf *buf, ber_len_t minsize ));
59 ber_pvt_sb_copy_out LDAP_P(( Sockbuf_Buf *sbb, char *buf, ber_len_t len ));
62 ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));