I am writing an asynchronous X windows based client that uses
ldap_client library to communicate with slpad.
After makeing the call:
LDAP *pLD;
// open a connection
if ( (pLD = ldap_open( pStrIPAddress, iPortId )) == NULL )
{
return ( LDAP_SERVER_DOWN );
}
I would like to register the the file descriptor for the ldap connection
with my X event loop so that I can then call ldap_result() when there is
some activity.
Questions:
After perusing the ldap stucture I am unsure of the proper field(s) to
use... can someone help me with that? The actual read/write socket
description would be most helpful.
Is there another/better way to do this that I have not grasped?
In addition it would seem that a api call to get this would be benifical
since I imagine that many client side applications will have there own
event loops to contend with.
-Steve
==============================================================================
Stephen E. Brown o Sr. Software Engineer
Canon Information Systems __o <|\ Phone : (714) 438-7150
3188 Pullman Street _ \<_ _\ FAX : (714) 241-7625
CostaMesa, CA. 92626 __^o_ (_)/(_) / e-mail: sbrown@ccsmtp.canon.com
==============================================================================