summaryrefslogtreecommitdiff
path: root/dpi/dpiutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/dpiutil.h')
-rw-r--r--dpi/dpiutil.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/dpi/dpiutil.h b/dpi/dpiutil.h
index b137fa0c..d939ddcb 100644
--- a/dpi/dpiutil.h
+++ b/dpi/dpiutil.h
@@ -28,43 +28,6 @@ extern "C" {
#endif /* __cplusplus */
-#define BUFLEN 256
-#define TOUT 300
-
-
-/* Streamed Sockets API (not mandatory) ----------------------------------*/
-
-typedef struct _SockHandler SockHandler;
-struct _SockHandler {
- int fd_in;
- int fd_out;
- /* FILE *in; --Unused. The stream functions block when reading. */
- FILE *out;
-
- char *buf; /* internal buffer */
- uint_t buf_sz; /* data size */
- uint_t buf_max; /* allocated size */
- uint_t flush_sz; /* max size before flush */
-};
-
-SockHandler *sock_handler_new(int fd_in, int fd_out, int flush_sz);
-int sock_handler_write(SockHandler *sh, int flush,
- const char *Data,size_t DataSize);
-int sock_handler_write_str(SockHandler *sh, int flush, const char *str);
-char *sock_handler_read(SockHandler *sh);
-void sock_handler_close(SockHandler *sh);
-void sock_handler_free(SockHandler *sh);
-
-#define sock_handler_printf(sh, flush, ...) \
- D_STMT_START { \
- Dstr *dstr = dStr_sized_new(128); \
- dStr_sprintf(dstr, __VA_ARGS__); \
- sock_handler_write(sh, flush, dstr->str, dstr->len); \
- dStr_free(dstr, 1); \
- } D_STMT_END
-
-/* ----------------------------------------------------------------------- */
-
/*
* Escape URI characters in 'esc_set' as %XX sequences.
* Return value: New escaped string.