blob: 1463f8a577e0baa97e11d5f9ed71a98d52b36f39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#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_setAlias(const char *server, const char *alias);
void server_initServers();
int server_send(epoll_server_t *server, const char *buffer, size_t len, const BOOL cork);
int server_aliasToBase(struct string *in, struct string *out);
int server_baseToAlias(struct string *in, struct string *out);
uint32_t server_searchRequest(int server, struct SearchRequest *req);
#endif
|