spdk_sock_opts Struct Reference

Spdk socket initialization options. More...

Collaboration diagram for spdk_sock_opts:

Data Fields

size_t opts_size
 The size of spdk_sock_opts according to the caller of this library is used for ABI compatibility. More...
 
int priority
 The priority on the socket and default value is zero.
 
bool zcopy
 Used to enable or disable zero copy on socket layer.
 
uint8_t reserved13 [3]
 
uint32_t ack_timeout
 Time in msec to wait ack until connection is closed forcefully.
 
uint8_t reserved [4]
 
struct spdk_sock_impl_optsimpl_opts
 Socket implementation options. More...
 
size_t impl_opts_size
 Size of the impl_opts structure.
 

Detailed Description

Spdk socket initialization options.

A pointer to this structure will be used by spdk_sock_listen_ext() or spdk_sock_connect_ext() to allow the user to request non-default options on the socket.

Field Documentation

◆ impl_opts

struct spdk_sock_impl_opts* spdk_sock_opts::impl_opts

Socket implementation options.

If non-NULL, these will override those set by spdk_sock_impl_set_opts(). The library copies this structure internally, so the user can free it immediately after a spdk_sock_connect()/spdk_sock_listen() call.

◆ opts_size

size_t spdk_sock_opts::opts_size

The size of spdk_sock_opts according to the caller of this library is used for ABI compatibility.

The library uses this field to know how many fields in this structure are valid. And the library will populate any remaining fields with default values.


The documentation for this struct was generated from the following file: