[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: setting up a Sockbuf

At 11:49 AM 2001-09-28, Ingersoll, Steve wrote:
>        I have a buffer that contains a message from a client and would like to be able to use the ber_get_next routine on the buffer. The ber_get_next routine requires a Sockbuf but I am not sure how to setup the Sockbuf so that it reads from the buffer rather then a socket. Can anyone tell me how to either set the Sockbuf such that ber_get_next will read from the buffer or parse the buffer using the ber* calls.

Given you have a buffer, you should use ber_scanf() or other decoding functions.
See the IETF LDAPext I-D detailing the LBER (ber) and other LDAP API routines.