From: Graham B. <gb...@po...> - 2001-07-31 15:49:17
|
This part of the API in Net::LDAP is incomplete, mainly due to the fact that nobody has found a need for it yet. But basically you must call select on the socket, as returned from $ldap->socket. When there is data to be read, you must call $ldap->_recvresp, which will return 0 on success, or an error code. Any outstanding operations will have thier callbacks called for each packet received. Graham. On Tue, Jul 31, 2001 at 09:33:17AM -0600, Chris Fedde wrote: > I must admit that I'm stymied. I'm working with POE and Net::LDAP to > build a proxy agent but have been unable to find a documented public > interface that lets me tie Net::LDAP to any kind of async event manager. > The best I seem to be able to do is create the Net::LDAP object with the > async flag true. Then some time later do a synch on the object hopeing > that results are available. As might be expected the performance of this > sucks. > > On the list archive from last year I see $ldap->socket used to get > a socket handle that can be used in select. That method is still > there. but still undocumented. The recommendation then is to use > a private method to retrieve the data. Is that the best interface > that exists for > > I guess that if no other solution surfaces I'll remodel this to fork a > process per client and do all actions synchronously. > > Looking forward to any advice > chris > > -- > Chris Fedde > |