struct net_drv_conn
Overview
A pair of connected sockets More...
#include <net_drv_data_flow.h> struct net_drv_conn { // fields rcf_rpc_server* rpcs1; rcf_rpc_server* rpcs2; rpc_socket_type sock_type; const struct sockaddr* s1_addr; const struct sockaddr* s2_addr; te_bool new_ports; int s1; int s2; struct sockaddr_storage s1_addr_st; struct sockaddr_storage s2_addr_st; };
Detailed Documentation
A pair of connected sockets
Fields
rcf_rpc_server* rpcs1
RPC server for the first socket
rcf_rpc_server* rpcs2
RPC server for the second socket
rpc_socket_type sock_type
RPC_SOCK_DGRAM
or RPC_SOCK_STREAM
const struct sockaddr* s1_addr
Address for the first socket
const struct sockaddr* s2_addr
Address for the second socket
te_bool new_ports
Whether new ports should be allocated
int s1
The first socket
int s2
The second socket
struct sockaddr_storage s1_addr_st
Auxiliary storage for the first address
struct sockaddr_storage s2_addr_st
Auxiliary storage for the second address