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

RE: API Programming questions

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Michael
> Stroder

> Hallvard B Furuseth wrote:
> > It's not documented, but
> >     int fd;
> >     ldap_get_option(ld, LDAP_OPT_DESC, &fd);
> > reads the file descriptor.
> BTW: Is it also possible to set a file descriptor for an existent
> connection? I'd like to add support for doing LDAP
> connections through a
> HTTP proxy using HTTP-CONNECT. This would best be done within
> the OpenLDAP
> library but my inquiry was refused some time ago.

This sort of thing does not belong in libldap; any requests would need to be
encapsulated in whatever wrapper the HTTP proxy uses, and any replies would
likewise need to be unwrapped. libldap shouldn't know anything about this.
The way to do this is through the sockbuf interface, which is part of

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support