aboutsummaryrefslogtreecommitdiffstats
path: root/include/datastream.h
blob: f38908d0c9ac1f0c2ccaf82f9583ebde3b257fd7 (about) (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
29
30
/*
 * Copyright (c) 2005 Atheme Development Group
 * Rights to this code are as documented in doc/LICENSE.
 *
 * Datastream query stuff.
 *
 */
#ifndef __CLARODATASTREAM
#define __CLARODATASTREAM

E void sendq_add(connection_t *cptr, char *buf, int len);
E void sendq_add_eof(connection_t *cptr);
E void sendq_flush(connection_t *cptr);
E bool sendq_nonempty(connection_t *cptr);
E void sendq_set_limit(connection_t *cptr, size_t len);

E int recvq_length(connection_t *cptr);
E void recvq_put(connection_t *cptr);
E int recvq_get(connection_t *cptr, char *buf, int len);
E int recvq_getline(connection_t *cptr, char *buf, int len);

E void sendqrecvq_free(connection_t *cptr);

#endif

/* vim:cinoptions=>s,e0,n0,f0,{0,}0,^0,=s,ps,t0,c3,+s,(2s,us,)20,*30,gs,hs
 * vim:ts=8
 * vim:sw=8
 * vim:noexpandtab
 */