diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-01 16:31:59 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-01 16:31:59 -0300 |
commit | 3f0bfc11c1016824774d5268aac57fee15485557 (patch) | |
tree | 6e4d9ef735539be23ed6aa0c8cf4709832822df2 /dpip/dpip.h | |
parent | df2f261ccb261447576b98b9e466f06daf33115d (diff) |
Introduced the a_Dpip_dsh_tryflush() call
This adds an internal buffer in the dsh data structure.
Diffstat (limited to 'dpip/dpip.h')
-rw-r--r-- | dpip/dpip.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dpip/dpip.h b/dpip/dpip.h index 453b13e5..083732ff 100644 --- a/dpip/dpip.h +++ b/dpip/dpip.h @@ -35,8 +35,8 @@ struct _DpipSocketHandler { /* FILE *in; --Unused. The stream functions block when reading. */ FILE *out; - Dstr *dbuf; /* write buffer */ - Dstr *rd_dbuf; /* read buffer */ + Dstr *wrbuf; /* write buffer */ + Dstr *rdbuf; /* read buffer */ int flush_sz; /* max size before flush */ int mode; /* mode flags: DPIP_TAG | DPIP_LAST_TAG | DPIP_RAW */ @@ -68,6 +68,7 @@ int a_Dpip_check_auth(const char *auth); Dsh *a_Dpip_dsh_new(int fd_in, int fd_out, int flush_sz); int a_Dpip_dsh_write(Dsh *dsh, int flush, const char *Data, int DataSize); int a_Dpip_dsh_write_str(Dsh *dsh, int flush, const char *str); +int a_Dpip_dsh_tryflush(Dsh *dsh); int a_Dpip_dsh_trywrite(Dsh *dsh, const char *Data, int DataSize); char *a_Dpip_dsh_read_token(Dsh *dsh, int blocking); void a_Dpip_dsh_close(Dsh *dsh); |