summaryrefslogblamecommitdiffstats
path: root/server.h
blob: 5252048d8f451f7ab801c896418cfefa413aa54a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                  



                                                                                         
                                                
 


                                                                                              


      
#ifndef _SERVER_H_
#define _SERVER_H_

#include "types.h"

struct string;
struct SearchRequest;

void server_setBind(const char *server, const char *bind);

void server_setPassword(const char *server, const char *password);

void server_setBase(const char *server, const char *base);

void server_initServers();

int server_send(epoll_server_t *server, const char *buffer, size_t len, const BOOL cork);

server_t *server_getFromBase(struct string *in);

uint32_t server_searchRequest(server_t *server, struct SearchRequest *req);

uint32_t server_tryUserBind(server_t *server, struct string *binddn, struct string *password);

#endif