projects
/
reposerve
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
server responds to flist
[reposerve]
/
server
/
src
/
client.h
1
#ifndef CLIENT_H_
2
#define CLIENT_H_
3
4
enum {
5
CLIENT_DOS = 1
6
};
7
8
struct client {
9
int s;
10
char *addr;
11
unsigned int flags;
12
char buf[16384];
13
int bsz;
14
struct client *next;
15
};
16
17
int handle_client(struct client *c);
18
19
void send_string(struct client *c, const char *s);
20
void send_ok(struct client *c, int resp_sz);
21
void send_err(struct client *c);
22
23
#endif /* CLIENT_H_ */