3 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms are permitted only
7 * as authorized by the OpenLDAP Public License. A copy of this
8 * license is available at http://www.OpenLDAP.org/license.html or
9 * in file LICENSE in the top-level directory of the distribution.
12 * lber_pvt.h - Header for ber_pvt_ functions. These are meant to be used
13 * by the OpenLDAP distribution only.
23 typedef struct sockbuf_buf {
33 LBER_F( BER_LOG_PRINT_FN ) ber_pvt_log_print;
36 ber_pvt_log_printf LDAP_P((
40 ... )) LDAP_GCCATTR((format(printf, 3, 4)));
46 ber_pvt_sb_do_write LDAP_P(( Sockbuf_IO_Desc *sbiod, Sockbuf_Buf *buf_out ));
49 ber_pvt_sb_buf_init LDAP_P(( Sockbuf_Buf *buf ));
52 ber_pvt_sb_buf_destroy LDAP_P(( Sockbuf_Buf *buf ));
55 ber_pvt_sb_grow_buffer LDAP_P(( Sockbuf_Buf *buf, ber_len_t minsize ));
58 ber_pvt_sb_copy_out LDAP_P(( Sockbuf_Buf *sbb, char *buf, ber_len_t len ));
61 ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));