pars 0.2.1.99
Loading...
Searching...
No Matches
pars::net::socket_opt Struct Reference

Represents the options that can be configured for a given socket. More...

#include <socket_opt.h>

Public Attributes

nng_socket Options
std::optional< nng_duration > recv_timeout
 NNG_OPT_RECVTIMEO.
 
std::optional< nng_duration > send_timeout
 NNG_OPT_SENDTIMEO.
 
nng_req Options
std::optional< nng_duration > req_resend_time
 NNG_OPT_REQ_RESENDTIME.
 
std::optional< nng_duration > req_resend_tick
 NNG_OPT_REQ_RESENDTICK.
 

Detailed Description

Represents the options that can be configured for a given socket.

These can be nng_options for an nng_socket, or they can be options of the nng_req protocol.

Definition at line 47 of file socket_opt.h.

Member Data Documentation

◆ recv_timeout

std::optional<nng_duration> pars::net::socket_opt::recv_timeout

NNG_OPT_RECVTIMEO.

Definition at line 51 of file socket_opt.h.

Referenced by pars::net::socket::set_options().

◆ req_resend_tick

std::optional<nng_duration> pars::net::socket_opt::req_resend_tick

NNG_OPT_REQ_RESENDTICK.

Definition at line 57 of file socket_opt.h.

Referenced by pars::net::socket::set_options().

◆ req_resend_time

std::optional<nng_duration> pars::net::socket_opt::req_resend_time

NNG_OPT_REQ_RESENDTIME.

Definition at line 56 of file socket_opt.h.

Referenced by pars::net::socket::set_options().

◆ send_timeout

std::optional<nng_duration> pars::net::socket_opt::send_timeout

NNG_OPT_SENDTIMEO.

Definition at line 52 of file socket_opt.h.

Referenced by pars::net::socket::set_options().


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