Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

chirp_stream.h

Go to the documentation of this file.
00001 #ifndef CHIRP_STREAM_H
00002 #define CHIRP_STREAM_H
00003 
00004 #include <sys/time.h>
00005 #include <stdio.h>
00006 
00019 typedef enum {
00020         CHIRP_STREAM_READ,         
00021         CHIRP_STREAM_WRITE,  
00022 } chirp_stream_mode_t;
00023 
00033 struct chirp_stream * chirp_stream_open( const char *hostport, const char *path, chirp_stream_mode_t mode, time_t stoptime );
00034 
00043 int chirp_stream_printf( struct chirp_stream *stream, time_t stoptime, const char *fmt, ... );
00044 
00053 int chirp_stream_readline( struct chirp_stream *stream, char *line, int length, time_t stoptime );
00054 
00063 int chirp_stream_write( struct chirp_stream *stream, const void *data, int length, time_t stoptime );
00064 
00073 int chirp_stream_read( struct chirp_stream *stream, void *data, int length, time_t stoptime );
00074 
00081 int chirp_stream_flush( struct chirp_stream *stream, time_t stoptime );
00082 
00091 int chirp_stream_close( struct chirp_stream *stream, time_t stoptime );
00092 
00093 #endif

Generated on Fri Jun 26 09:33:42 2009 for cctools by  doxygen 1.3.9.1