struct net_drv_flow
Overview
Structure describing data flow between a pair of sockets More...
#include <net_drv_data_flow.h> struct net_drv_flow { // fields rcf_rpc_server* rpcs1; rcf_rpc_server* rpcs2; te_bool tx; int flow_id; te_bool new_processes; net_drv_conn* conn; int duration; te_bool ignore_send_err; int min_size; int max_size; rcf_rpc_server* sender_rpcs; rcf_rpc_server* receiver_rpcs; int sender_s; int receiver_s; tapi_pat_sender sender_ctx; te_bool in_progress; te_bool success; };
Detailed Documentation
Structure describing data flow between a pair of sockets
Fields
rcf_rpc_server* rpcs1
RPC server for the first socket
rcf_rpc_server* rpcs2
RPC server for the second socket
te_bool tx
If TRUE
, data is sent from the first socket to the second one, otherwise - in the opposite direction
int flow_id
Unique data flow ID
te_bool new_processes
Whether to create new processes
net_drv_conn* conn
Connected sockets to use
int duration
How log to send, in seconds
te_bool ignore_send_err
Whether to ignore send() errors
int min_size
Minimum data size passed to send()
int max_size
Maximum data dise passed to send()
rcf_rpc_server* sender_rpcs
Sender RPC server
rcf_rpc_server* receiver_rpcs
Receiver RPC server
int sender_s
Sender socket
int receiver_s
Receiver socket
tapi_pat_sender sender_ctx
Context for rpc_pattern_sender()
te_bool in_progress
Set to TRUE
while sending is in progress
te_bool success
After net_drv_flow_finish() this field shows whether data sending/receiving was successful