struct tarpc_pattern_receiver_in

Overview

struct tarpc_pattern_receiver_in {
    // fields

    struct tarpc_in_arg common;
    tarpc_int s;
    char fname;
    iomux_func iomux;
    uint64_t exp_received;
    uint32_t time2run;
    uint32_t time2wait;
    tarpc_bool ignore_pollerr;
    tarpc_pat_gen_arg gen_arg;
};

Detailed Documentation

Fields

tarpc_int s

Socket to be used

char fname

Pattern generating function

iomux_func iomux

Iomux function to be used

uint64_t exp_received

How many bytes should be received (ignored if 0; if > 0, receiving will be stopped after reading this number of bytes)

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 readability before stopping receiving (in milliseconds; if 0, the function will wait until time2run expires)

tarpc_bool ignore_pollerr

If true, POLLERR event should be ignored if it arrives instead of POLLIN

tarpc_pat_gen_arg gen_arg

Pattern generator function arguments