Loading...
Searching...
No Matches
spdk_sock_opts Struct Reference

Spdk socket initialization options. More...

#include <sock.h>

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.
 
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.
 
size_t impl_opts_size
 Size of the impl_opts structure.
 
const char * src_addr
 Source address.
 
uint16_t src_port
 Source port.
 

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.

◆ src_addr

const char* spdk_sock_opts::src_addr

Source address.

If NULL, any available address will be used. Only valid for connect().

◆ src_port

uint16_t spdk_sock_opts::src_port

Source port.

If zero, a random ephemeral port will be used. Only valid for connect().


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