Electroneum
port_if Struct Reference

#include <outside_network.h>

Collaboration diagram for port_if:

Public Attributes

struct sockaddr_storage addr
 
socklen_t addrlen
 
int pfxlen
 
int * avail_ports
 
int avail_total
 
struct port_comm ** out
 
int maxout
 
int inuse
 

Detailed Description

Outgoing interface. Ports available and currently used are tracked per interface

Definition at line 165 of file outside_network.h.

Member Data Documentation

◆ addr

struct sockaddr_storage port_if::addr

address ready to allocate new socket (except port no).

Definition at line 167 of file outside_network.h.

◆ addrlen

socklen_t port_if::addrlen

length of addr field

Definition at line 169 of file outside_network.h.

◆ avail_ports

int* port_if::avail_ports

the available ports array. These are unused. Only the first total-inuse part is filled.

Definition at line 177 of file outside_network.h.

◆ avail_total

int port_if::avail_total

the total number of available ports (size of the array)

Definition at line 179 of file outside_network.h.

◆ inuse

int port_if::inuse

number of commpoints (and thus also ports) in use

Definition at line 187 of file outside_network.h.

◆ maxout

int port_if::maxout

max number of fds, size of out array

Definition at line 185 of file outside_network.h.

◆ out

struct port_comm** port_if::out

array of the commpoints currently in use. allocated for max number of fds, first part in use.

Definition at line 183 of file outside_network.h.

◆ pfxlen

int port_if::pfxlen

prefix length of network address (in bits), for randomisation. if 0, no randomisation.

Definition at line 173 of file outside_network.h.


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