ipa-cldap: Implement worker thread.

This commit is contained in:
Simo Sorce
2011-11-14 17:38:53 -05:00
parent 710f435c20
commit d709dcf8f5
2 changed files with 81 additions and 1 deletions

View File

@@ -58,6 +58,7 @@
#define IPA_PLUGIN_NAME IPA_CLDAP_PLUGIN_NAME
#define CLDAP_PORT 389
#define MAX_DG_SIZE 4096
struct ipa_cldap_ctx {
Slapi_ComponentId *plugin_id;
@@ -67,6 +68,16 @@ struct ipa_cldap_ctx {
int sd;
};
struct ipa_cldap_req {
int fd;
struct sockaddr_storage ss;
socklen_t ss_len;
char dgram[MAX_DG_SIZE];
size_t dgsize;
};
void *ipa_cldap_worker(struct ipa_cldap_ctx *ctx);
#endif /* _IPA_CLDAP_H_ */