#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <yaz/log.h>
#include <yaz/comstack.h>
#include <yaz/tcpip.h>
#include <yaz/unix.h>
#include <yaz/odr.h>
Go to the source code of this file.
Defines | |
| #define | CHUNK_DEBUG 0 |
Functions | |
| const char * | cs_errmsg (int n) |
| const char * | cs_strerror (COMSTACK h) |
| void | cs_get_host_args (const char *type_and_host, const char **args) |
| static int | cs_parse_host (const char *uri, const char **host, CS_TYPE *t, enum oid_proto *proto, char **connect_host) |
| COMSTACK | cs_create_host (const char *vhost, int blocking, void **vp) |
| int | cs_look (COMSTACK cs) |
| static int | skip_crlf (const char *buf, int len, int *i) |
| static int | cs_complete_http (const char *buf, int len, int head_only) |
| static int | cs_complete_auto_x (const char *buf, int len, int head_only) |
| int | cs_complete_auto (const char *buf, int len) |
| int | cs_complete_auto_head (const char *buf, int len) |
| void | cs_set_max_recv_bytes (COMSTACK cs, int max_recv_bytes) |
Variables | |
| static const char * | cs_errlist [] |
Definition in file comstack.c.
| #define CHUNK_DEBUG 0 |
Definition at line 209 of file comstack.c.
| int cs_complete_auto | ( | const char * | buf, | |
| int | len | |||
| ) |
Definition at line 370 of file comstack.c.
References cs_complete_auto_x().
Referenced by tcpip_get_connect(), tcpip_type(), and unix_type().
| int cs_complete_auto_head | ( | const char * | buf, | |
| int | len | |||
| ) |
Definition at line 375 of file comstack.c.
References cs_complete_auto_x().
Referenced by yaz_tcpip_create().
| static int cs_complete_auto_x | ( | const char * | buf, | |
| int | len, | |||
| int | head_only | |||
| ) | [static] |
Definition at line 357 of file comstack.c.
References completeBER(), and cs_complete_http().
Referenced by cs_complete_auto(), and cs_complete_auto_head().
| static int cs_complete_http | ( | const char * | buf, | |
| int | len, | |||
| int | head_only | |||
| ) | [static] |
Definition at line 211 of file comstack.c.
References skip_crlf().
Referenced by cs_complete_auto_x().
| COMSTACK cs_create_host | ( | const char * | vhost, | |
| int | blocking, | |||
| void ** | vp | |||
| ) |
Definition at line 156 of file comstack.c.
References cs_close, cs_create, cs_parse_host(), cs_straddr, PROTO_Z3950, tcpip_type(), xfree, and yaz_tcpip_create().
Referenced by add_listener(), and do_connect().
| const char* cs_errmsg | ( | int | n | ) |
Definition at line 45 of file comstack.c.
References cs_errlist, CSLASTERROR, and CSYSERR.
Referenced by cs_strerror(), and ir_read().
| void cs_get_host_args | ( | const char * | type_and_host, | |
| const char ** | args | |||
| ) |
| int cs_look | ( | COMSTACK | cs | ) |
Definition at line 186 of file comstack.c.
References comstack::event.
Referenced by ZOOM_connection_do_io().
| static int cs_parse_host | ( | const char * | uri, | |
| const char ** | host, | |||
| CS_TYPE * | t, | |||
| enum oid_proto * | proto, | |||
| char ** | connect_host | |||
| ) | [static] |
Definition at line 83 of file comstack.c.
References PROTO_HTTP, PROTO_Z3950, ssl_type(), tcpip_type(), unix_type(), and xmalloc.
Referenced by cs_create_host().
| void cs_set_max_recv_bytes | ( | COMSTACK | cs, | |
| int | max_recv_bytes | |||
| ) |
Definition at line 380 of file comstack.c.
References comstack::max_recv_bytes.
Referenced by control_association().
| const char* cs_strerror | ( | COMSTACK | h | ) |
Definition at line 60 of file comstack.c.
References comstack::cerrno, and cs_errmsg().
Referenced by add_listener().
| static int skip_crlf | ( | const char * | buf, | |
| int | len, | |||
| int * | i | |||
| ) | [static] |
const char* cs_errlist[] [static] |
Initial value:
{
"No error or unspecified error",
"System (lower-layer) error",
"Operation out of state",
"No data (operation would block)",
"New data while half of old buffer is on the line (flow control)",
"Permission denied",
"SSL error",
"Too large incoming buffer"
}
Definition at line 33 of file comstack.c.
Referenced by cs_errmsg().
1.5.6