|
cryptlib
3.4.1
|
#include "io/stream.h"Go to the source code of this file.
Macros | |
| #define | STREAM_FLAG_READONLY 0x0001 /* Read-only stream */ |
| #define | STREAM_FLAG_PARTIALREAD 0x0002 /* Allow read of less than req.amount */ |
| #define | STREAM_FLAG_PARTIALWRITE 0x0004 /* Allow write of less than req.amount */ |
| #define | STREAM_FLAG_DIRTY 0x0008 /* Stream contains un-committed data */ |
| #define | STREAM_FLAG_MASK 0x000F /* Mask for general-purpose flags */ |
| #define | STREAM_MFLAG_VFILE 0x0010 /* File stream emulated via mem.stream */ |
| #define | STREAM_MFLAG_MASK ( 0x0010 | STREAM_FLAG_MASK ) |
| #define | STREAM_FFLAG_BUFFERSET 0x0080 /* Stream has associated buffer */ |
| #define | STREAM_FFLAG_EOF 0x0100 /* EOF reached on stream */ |
| #define | STREAM_FFLAG_POSCHANGED 0x0200 /* File stream position has changed */ |
| #define | STREAM_FFLAG_POSCHANGED_NOSKIP 0x0400 /* New stream pos.is in following block */ |
| #define | STREAM_FFLAG_MMAPPED 0x0800 /* File stream is memory-mapped */ |
| #define | STREAM_FFLAG_MASK ( 0x0F80 | STREAM_FLAG_MASK ) |
| #define | STREAM_NFLAG_ISSERVER 0x0001 /* Stream is server rather than client */ |
| #define | STREAM_NFLAG_USERSOCKET 0x0002 /* Network socket was supplied by user */ |
| #define | STREAM_NFLAG_HTTP10 0x0004 /* HTTP 1.0 stream */ |
| #define | STREAM_NFLAG_HTTPPROXY 0x0008 /* Use HTTP proxy format for requests */ |
| #define | STREAM_NFLAG_HTTPTUNNEL 0x0010 /* Use HTTP proxy tunnel for connect */ |
| #define | STREAM_NFLAG_HTTPGET 0x0020 /* Allow HTTP GET */ |
| #define | STREAM_NFLAG_HTTPPOST 0x0040 /* Allow HTTP POST */ |
| #define | STREAM_NFLAG_LASTMSG 0x0080 /* Last message in exchange */ |
| #define | STREAM_NFLAG_ENCAPS 0x0100 /* Network transport is encapsulated */ |
| #define | STREAM_NFLAG_FIRSTREADOK 0x0200 /* First data read succeeded */ |
| #define | STREAM_NFLAG_HTTPREQMASK ( STREAM_NFLAG_HTTPGET | STREAM_NFLAG_HTTPPOST ) |
| #define | TRANSPORT_FLAG_NONE 0x00 /* No transport flag */ |
| #define | TRANSPORT_FLAG_FLUSH 0x01 /* Flush data on write */ |
| #define | TRANSPORT_FLAG_NONBLOCKING 0x02 /* Explicitly perform nonblocking read */ |
| #define | TRANSPORT_FLAG_BLOCKING 0x04 /* Explicitly perform blocking read */ |
| #define | TRANSPORT_FLAG_MAX 0x07 /* Maximum possible flag value */ |
| #define | STREAM_VFILE_BUFSIZE 16384 |
| #define | sIsMemMappedStream(stream) |
| #define | sIsVirtualFileStream(stream) |
| #define | findProxyUrl(proxy, proxyMaxLen, proxyLen, url, urlLen) CRYPT_ERROR_NOTFOUND |
| #define | setAccessMethodTransportSession(netStream) |
Typedefs | |
| typedef void * | NET_STREAM_INFO |
Enumerations | |
| enum | STREAM_TYPE { STREAM_TYPE_NONE, STREAM_TYPE_NULL, STREAM_TYPE_MEMORY, STREAM_TYPE_FILE, STREAM_TYPE_NETWORK, STREAM_TYPE_LAST } |
Functions | |
| CHECK_RETVAL | STDC_NONNULL_ARG ((1, 2)) int parseURL(OUT URL_INFO *urlInfo |
| CHECK_RETVAL | IN_BUFFER (urlLen) const char *url |
| CHECK_RETVAL IN_LENGTH_SHORT const int IN_PORT_OPT const int | IN_ENUM (URL_TYPE) const URL_TYPE urlTypeHint |
| CHECK_RETVAL | STDC_NONNULL_ARG ((1)) int connectViaSocksProxy(INOUT STREAM *stream) |
| #define findProxyUrl | ( | proxy, | |
| proxyMaxLen, | |||
| proxyLen, | |||
| url, | |||
| urlLen | |||
| ) | CRYPT_ERROR_NOTFOUND |
Definition at line 344 of file stream_int.h.
| #define setAccessMethodTransportSession | ( | netStream | ) |
Definition at line 364 of file stream_int.h.
| #define sIsMemMappedStream | ( | stream | ) |
Definition at line 313 of file stream_int.h.
| #define sIsVirtualFileStream | ( | stream | ) |
Definition at line 316 of file stream_int.h.
| #define STREAM_FFLAG_BUFFERSET 0x0080 /* Stream has associated buffer */ |
Definition at line 87 of file stream_int.h.
| #define STREAM_FFLAG_EOF 0x0100 /* EOF reached on stream */ |
Definition at line 88 of file stream_int.h.
| #define STREAM_FFLAG_MASK ( 0x0F80 | STREAM_FLAG_MASK ) |
Definition at line 92 of file stream_int.h.
| #define STREAM_FFLAG_MMAPPED 0x0800 /* File stream is memory-mapped */ |
Definition at line 91 of file stream_int.h.
| #define STREAM_FFLAG_POSCHANGED 0x0200 /* File stream position has changed */ |
Definition at line 89 of file stream_int.h.
| #define STREAM_FFLAG_POSCHANGED_NOSKIP 0x0400 /* New stream pos.is in following block */ |
Definition at line 90 of file stream_int.h.
| #define STREAM_FLAG_DIRTY 0x0008 /* Stream contains un-committed data */ |
Definition at line 55 of file stream_int.h.
| #define STREAM_FLAG_MASK 0x000F /* Mask for general-purpose flags */ |
Definition at line 56 of file stream_int.h.
| #define STREAM_FLAG_PARTIALREAD 0x0002 /* Allow read of less than req.amount */ |
Definition at line 53 of file stream_int.h.
| #define STREAM_FLAG_PARTIALWRITE 0x0004 /* Allow write of less than req.amount */ |
Definition at line 54 of file stream_int.h.
| #define STREAM_FLAG_READONLY 0x0001 /* Read-only stream */ |
Definition at line 52 of file stream_int.h.
| #define STREAM_MFLAG_MASK ( 0x0010 | STREAM_FLAG_MASK ) |
Definition at line 65 of file stream_int.h.
| #define STREAM_MFLAG_VFILE 0x0010 /* File stream emulated via mem.stream */ |
Definition at line 64 of file stream_int.h.
| #define STREAM_NFLAG_ENCAPS 0x0100 /* Network transport is encapsulated */ |
Definition at line 136 of file stream_int.h.
| #define STREAM_NFLAG_FIRSTREADOK 0x0200 /* First data read succeeded */ |
Definition at line 137 of file stream_int.h.
| #define STREAM_NFLAG_HTTP10 0x0004 /* HTTP 1.0 stream */ |
Definition at line 130 of file stream_int.h.
| #define STREAM_NFLAG_HTTPGET 0x0020 /* Allow HTTP GET */ |
Definition at line 133 of file stream_int.h.
| #define STREAM_NFLAG_HTTPPOST 0x0040 /* Allow HTTP POST */ |
Definition at line 134 of file stream_int.h.
| #define STREAM_NFLAG_HTTPPROXY 0x0008 /* Use HTTP proxy format for requests */ |
Definition at line 131 of file stream_int.h.
| #define STREAM_NFLAG_HTTPREQMASK ( STREAM_NFLAG_HTTPGET | STREAM_NFLAG_HTTPPOST ) |
Definition at line 138 of file stream_int.h.
| #define STREAM_NFLAG_HTTPTUNNEL 0x0010 /* Use HTTP proxy tunnel for connect */ |
Definition at line 132 of file stream_int.h.
| #define STREAM_NFLAG_ISSERVER 0x0001 /* Stream is server rather than client */ |
Definition at line 128 of file stream_int.h.
| #define STREAM_NFLAG_LASTMSG 0x0080 /* Last message in exchange */ |
Definition at line 135 of file stream_int.h.
| #define STREAM_NFLAG_USERSOCKET 0x0002 /* Network socket was supplied by user */ |
Definition at line 129 of file stream_int.h.
| #define STREAM_VFILE_BUFSIZE 16384 |
Definition at line 164 of file stream_int.h.
| #define TRANSPORT_FLAG_BLOCKING 0x04 /* Explicitly perform blocking read */ |
Definition at line 152 of file stream_int.h.
| #define TRANSPORT_FLAG_FLUSH 0x01 /* Flush data on write */ |
Definition at line 150 of file stream_int.h.
| #define TRANSPORT_FLAG_MAX 0x07 /* Maximum possible flag value */ |
Definition at line 153 of file stream_int.h.
| #define TRANSPORT_FLAG_NONBLOCKING 0x02 /* Explicitly perform nonblocking read */ |
Definition at line 151 of file stream_int.h.
| #define TRANSPORT_FLAG_NONE 0x00 /* No transport flag */ |
Definition at line 149 of file stream_int.h.
| typedef void* NET_STREAM_INFO |
Definition at line 296 of file stream_int.h.
| enum STREAM_TYPE |
| STREAM_TYPE_NONE | |
| STREAM_TYPE_NULL | |
| STREAM_TYPE_MEMORY | |
| STREAM_TYPE_FILE | |
| STREAM_TYPE_NETWORK | |
| STREAM_TYPE_LAST |
Definition at line 26 of file stream_int.h.
| CHECK_RETVAL IN_BUFFER | ( | urlLen | ) | const |
| CHECK_RETVAL IN_LENGTH_SHORT const int IN_PORT_OPT const int IN_ENUM | ( | URL_TYPE | ) | const |
| CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2) | ) |
| CHECK_RETVAL STDC_NONNULL_ARG | ( | (1) | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 26 of file ctx_attr.c.
| CHECK_RETVAL IN_LENGTH_SHORT const int IN_PORT_OPT const int defaultPort |
Definition at line 325 of file stream_int.h.
| CHECK_RETVAL INOUT ERROR_INFO* errorInfo |
Definition at line 335 of file stream_int.h.
| CHECK_RETVAL IN_LENGTH_SHORT const int IN_PORT_OPT const int const BOOLEAN preParseOnly |
Definition at line 328 of file stream_int.h.
| CHECK_RETVAL IN_LENGTH_SHORT const int urlLen |
Definition at line 325 of file stream_int.h.
Definition at line 359 of file stream_int.h.
1.8.2