8 #ifndef _STREAM_INT_DEFINED
10 #define _STREAM_INT_DEFINED
12 #if defined( INC_ALL )
52 #define STREAM_FLAG_READONLY 0x0001
53 #define STREAM_FLAG_PARTIALREAD 0x0002
54 #define STREAM_FLAG_PARTIALWRITE 0x0004
55 #define STREAM_FLAG_DIRTY 0x0008
56 #define STREAM_FLAG_MASK 0x000F
64 #define STREAM_MFLAG_VFILE 0x0010
65 #define STREAM_MFLAG_MASK ( 0x0010 | STREAM_FLAG_MASK )
87 #define STREAM_FFLAG_BUFFERSET 0x0080
88 #define STREAM_FFLAG_EOF 0x0100
89 #define STREAM_FFLAG_POSCHANGED 0x0200
90 #define STREAM_FFLAG_POSCHANGED_NOSKIP 0x0400
91 #define STREAM_FFLAG_MMAPPED 0x0800
92 #define STREAM_FFLAG_MASK ( 0x0F80 | STREAM_FLAG_MASK )
128 #define STREAM_NFLAG_ISSERVER 0x0001
129 #define STREAM_NFLAG_USERSOCKET 0x0002
130 #define STREAM_NFLAG_HTTP10 0x0004
131 #define STREAM_NFLAG_HTTPPROXY 0x0008
132 #define STREAM_NFLAG_HTTPTUNNEL 0x0010
133 #define STREAM_NFLAG_HTTPGET 0x0020
134 #define STREAM_NFLAG_HTTPPOST 0x0040
135 #define STREAM_NFLAG_LASTMSG 0x0080
136 #define STREAM_NFLAG_ENCAPS 0x0100
137 #define STREAM_NFLAG_FIRSTREADOK 0x0200
138 #define STREAM_NFLAG_HTTPREQMASK ( STREAM_NFLAG_HTTPGET | STREAM_NFLAG_HTTPPOST )
149 #define TRANSPORT_FLAG_NONE 0x00
150 #define TRANSPORT_FLAG_FLUSH 0x01
151 #define TRANSPORT_FLAG_NONBLOCKING 0x02
152 #define TRANSPORT_FLAG_BLOCKING 0x04
153 #define TRANSPORT_FLAG_MAX 0x07
159 #if defined( __MVS__ ) || defined( __VMCMS__ ) || \
160 defined( __IBM4758__ ) || defined( __TESTIO__ )
161 #define VIRTUAL_FILE_STREAM
164 #define STREAM_VFILE_BUFSIZE 16384
184 int netSocket, listenSocket;
196 int timeout, savedTimeout;
201 BUFFER( writeBufSize, writeBufEnd )
\
218 int clientAddressLen;
224 int persistentStatus;
250 int ( *transportConnectFunction )(
INOUT struct NS *netStream,
255 void ( *transportDisconnectFunction )(
INOUT struct NS *netStream,
256 const BOOLEAN fullDisconnect );
272 BOOLEAN ( *transportOKFunction )( void );
274 int ( *transportCheckFunction )(
INOUT struct NS *netStream );
276 int ( *bufferedTransportReadFunction )(
INOUT struct ST *
stream,
284 int ( *bufferedTransportWriteFunction )(
INOUT struct ST *
stream,
313 #define sIsMemMappedStream( stream ) \
314 ( ( ( stream )->type == STREAM_TYPE_FILE ) && \
315 ( ( stream )->flags & STREAM_FFLAG_MMAPPED ) )
316 #define sIsVirtualFileStream( stream ) \
317 ( ( ( stream )->type == STREAM_TYPE_MEMORY ) && \
318 ( ( stream )->flags & STREAM_MFLAG_VFILE ) )
336 #if defined( __WIN32__ )
344 #define findProxyUrl( proxy, proxyMaxLen, proxyLen, url, urlLen ) CRYPT_ERROR_NOTFOUND
364 #define setAccessMethodTransportSession( netStream )