struct tarpc_pattern_sender_in

Overview

struct tarpc_pattern_sender_in {
    // fields

    struct tarpc_in_arg common;
    tarpc_int s;
    char fname;
    char swrapper;
    tarpc_ptr swrapper_data;
    iomux_func iomux;
    uint32_t size_min;
    uint32_t size_max;
    tarpc_bool size_rnd_once;
    uint32_t delay_min;
    uint32_t delay_max;
    tarpc_bool delay_rnd_once;
    uint32_t time2run;
    uint32_t time2wait;
    uint64_t total_size;
    tarpc_bool ignore_err;
    char pollerr_handler;
    tarpc_ptr pollerr_handler_data;
    tarpc_pat_gen_arg gen_arg;
};

Detailed Documentation

Fields

tarpc_int s

Socket to be used

char fname

Name of function generating a pattern

char swrapper

Send function wrapper (may be empty)

tarpc_ptr swrapper_data

Data which should be passed to send function wrapper

iomux_func iomux

Iomux function to be used

uint32_t size_min

Minimum size of the message

uint32_t size_max

Maximum size of the message

tarpc_bool size_rnd_once

If true, random size should be calculated only once and used for all messages; if false, random size is calculated for each message

uint32_t delay_min

Minimum delay between messages in microseconds

uint32_t delay_max

Maximum delay between messages in microseconds

tarpc_bool delay_rnd_once

If true, random delay should be calculated only once and used for all messages; if false, random delay is calculated for each message

uint32_t time2run

How long to run (in seconds; the function can finish earlier if time2wait is positive)

uint32_t time2wait

Maximum time to wait for writability before stopping sending (in milliseconds; if 0, the function will wait until time2run expires)

uint64_t total_size

How many bytes to send (ignored if 0)

tarpc_bool ignore_err

Ignore errors while run

char pollerr_handler

Handler to call if POLLERR event is got (optional; if not set, receiving POLLERR instead of POLLOUT will result in error)

tarpc_ptr pollerr_handler_data

Data to pass to POLLERR handler

tarpc_pat_gen_arg gen_arg

Pattern generator function arguments