CURLOPT_STREAM_WEIGHT(3) curl_easy_setopt options CURLOPT_STREAM_WEIGHT(3)NAME
CURLOPT_STREAM_WEIGHT - set numerical stream weight
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_STREAM_WEIGHT, long weight);
DESCRIPTION
Set the long weight to a number between 1 and 256.
When using HTTP/2, this option sets the individual weight for this particular stream used by the easy handle. Setting and using weights
only makes sense and is only usable when doing multiple streams over the same connections, which thus implies that you use CURLMOPT_PIPE-
LINING(3).
This option can be set during transfer and will then cause the updated weight info get sent to the server the next time a HTTP/2 frame is
sent to the server.
See section 5.3 of RFC 7540 for protocol details: https://httpwg.github.io/specs/rfc7540.html#StreamPriority
Streams with the same parent should be allocated resources proportionally based on their weight. So if you have two streams going, stream A
with weight 16 and stream B with weight 32, stream B will get two thirds (32/48) of the available bandwidth (assuming the server can send
off the data equally for both streams).
DEFAULT
If nothing is set, the HTTP/2 protocol itself will use its own default which is 16.
PROTOCOLS
HTTP/2
EXAMPLE
TODO
AVAILABILITY
Added in 7.46.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_STREAM_DEPENDS(3), CURLOPT_STREAM_DEPENDS_E(3), CURLOPT_PIPEWAIT(3), CURLMOPT_PIPELINING(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_STREAM_WEIGHT(3)
Check Out this Related Man Page
CURLOPT_IOCTLFUNCTION(3) curl_easy_setopt options CURLOPT_IOCTLFUNCTION(3)NAME
CURLOPT_IOCTLFUNCTION - callback for I/O operations
SYNOPSIS
#include <curl/curl.h>
typedef enum {
CURLIOE_OK, /* I/O operation successful */
CURLIOE_UNKNOWNCMD, /* command was unknown to callback */
CURLIOE_FAILRESTART, /* failed to restart the read */
CURLIOE_LAST /* never use */
} curlioerr;
typedef enum {
CURLIOCMD_NOP, /* no operation */
CURLIOCMD_RESTARTREAD, /* restart the read stream from start */
CURLIOCMD_LAST /* never use */
} curliocmd;
curlioerr ioctl_callback(CURL *handle, int cmd, void *clientp);
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_IOCTLFUNCTION, ioctl_callback);
DESCRIPTION
Pass a pointer to your callback function, which should match the prototype shown above.
This callback function gets called by libcurl when something special I/O-related needs to be done that the library can't do by itself. For
now, rewinding the read data stream is the only action it can request. The rewinding of the read data stream may be necessary when doing a
HTTP PUT or POST with a multi-pass authentication method.
The callback MUST return CURLIOE_UNKNOWNCMD if the input cmd is not CURLIOCMD_RESTARTREAD.
The clientp argument to the callback is set with the CURLOPT_IOCTLDATA(3) option.
This option is deprecated! Do not use it. Use CURLOPT_SEEKFUNCTION(3) instead to provide seeking! If CURLOPT_SEEKFUNCTION(3) is set, this
parameter will be ignored when seeking.
DEFAULT
By default, this parameter is set to NULL. Not used.
PROTOCOLS
Used with HTTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.12.3
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_IOCTLDATA(3), CURLOPT_SEEKFUNCTION(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_IOCTLFUNCTION(3)
I have Apache running on a Solaris server. Does anyone know how I go about using HTTP for a file transfer ( or I guess more properly termed in HTTP as a document transfer ) ? I have a requirement that restricts my file transfer options to HTTP only !
Is there any changes I need to make to the... (10 Replies)
I have file like that
name is M1
address is ......
tall is .....
weight is .....
name is M2
address is ......
tall is .....
weight is .....
and same type of data for many persons (M3, M4,...). I want to use sed or awk to get the weight and tall for every person , so the output file... (3 Replies)
Hi,
I need to mass delete the following string(s) from my files
weight=100,
However the '100' is variable e.g
Current:
----------------
moretext=bar, weight=100, moreinfo=blah
extrastuff=hi, weight=9999, extrainfo=foo
Desired:
------------------
moretext=bar, moreinfo=blah... (2 Replies)
Overview:
I'm looking for a way to get usage data for all mount points (UFS,VxFS & NFS) on a Solaris system. I'm starting with `df` but would like to find something that might be more light-weight.
Background:
Using SNMP is not an option in this case, instead I need to use basic built-in... (2 Replies)