1 |
pippijn |
1.4 |
/** |
2 |
|
|
* datastream.h: Datastream query stuff. |
3 |
|
|
* |
4 |
|
|
* Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
5 |
|
|
* Rights to this code are as documented in COPYING. |
6 |
|
|
* |
7 |
|
|
* |
8 |
|
|
* Portions of this file were derived from sources bearing the following license: |
9 |
pippijn |
1.3 |
* Copyright © 2005 Atheme Development Group |
10 |
pippijn |
1.2 |
* Rights to this code are as documented in doc/pod/license.pod. |
11 |
pippijn |
1.1 |
* |
12 |
pippijn |
1.4 |
* $Id: datastream.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $ |
13 |
pippijn |
1.1 |
*/ |
14 |
pippijn |
1.3 |
#ifndef DATASTREAM_H |
15 |
|
|
#define DATASTREAM_H |
16 |
pippijn |
1.1 |
|
17 |
|
|
E void sendq_add (connection_t *cptr, char *buf, int len); |
18 |
|
|
E void sendq_add_eof (connection_t *cptr); |
19 |
|
|
E void sendq_flush (connection_t *cptr); |
20 |
|
|
E bool sendq_nonempty (connection_t *cptr); |
21 |
|
|
|
22 |
|
|
E int recvq_length (connection_t *cptr); |
23 |
|
|
E void recvq_put (connection_t *cptr); |
24 |
|
|
E int recvq_get (connection_t *cptr, char *buf, int len); |
25 |
|
|
E int recvq_getline (connection_t *cptr, char *buf, int len); |
26 |
|
|
|
27 |
|
|
E void sendqrecvq_free (connection_t *cptr); |
28 |
|
|
|
29 |
|
|
#endif |