ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/datastream.h
Revision: 1.4
Committed: Sun Sep 16 18:54:42 2007 UTC (16 years, 8 months ago) by pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +9 -4 lines
Log Message:
#defines to enum

File Contents

# Content
1 /**
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 * Copyright © 2005 Atheme Development Group
10 * Rights to this code are as documented in doc/pod/license.pod.
11 *
12 * $Id: datastream.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $
13 */
14 #ifndef DATASTREAM_H
15 #define DATASTREAM_H
16
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