SE_connection_set_stream_spec |
Sets buffering properties for future streams
LONG SE_connection_set_stream_spec (SE_CONNECTION connection, const SE_STREAM_SPEC *spec);
connection | The connection handle |
spec | A pointer to an SE_STREAM_SPEC structure |
This function sets advanced properties for subsequent stream creation. The properties deal with buffer management on the server and the transmission buffers between client and server.
The SE_STREAM_SPEC structure sets the buffering properties. The following is an example of how to change stream creation properties.
#include "sdetype.h"
SE_STREAM_SPEC stream_spec;
result = SE_connection_get_stream_spec(connection,&stream_spec);
if (SE_SUCCESS != result) return(result);
stream_spec.max_bytes_per_blob = 5000000; /* max individual blob size in array fetch */
result = SE_connection_set_stream_spec(connection,&stream_spec);
if (SE_SUCCESS != result) return(result);
return(SE_SUCCESS);
SE_SUCCESS
SE_CONNECTION_IN_USE
SE_CONNECTION_LOCKED
SE_INVALID_PARAM_VALUE
SE_INVALID_POINTER
SE_INVALID_SHAPE_BUF_SIZE
SE_INVALID_STREAM_SPEC
SE_NET_FAILURE
SE_SDE_NOT_STARTED