Atrinik Client  4.0
Enumerations | Functions
network_graph.h File Reference

Go to the source code of this file.

Enumerations

enum  { NETWORK_GRAPH_TYPE_GAME, NETWORK_GRAPH_TYPE_HTTP, NETWORK_GRAPH_TYPE_MAX }
 
enum  { NETWORK_GRAPH_TRAFFIC_RX, NETWORK_GRAPH_TRAFFIC_TX, NETWORK_GRAPH_TRAFFIC_MAX }
 

Functions

void network_graph_update (int type, int traffic, size_t bytes)
 
void widget_network_graph_init (widgetdata *widget)
 

Detailed Description

Network graph widget header file.

Author
Alex Tokar

Definition in file network_graph.h.

Enumeration Type Documentation

anonymous enum
Enumerator
NETWORK_GRAPH_TYPE_GAME 

Game data.

NETWORK_GRAPH_TYPE_HTTP 

HTTP data.

NETWORK_GRAPH_TYPE_MAX 

Maximum number of data types.

Definition at line 35 of file network_graph.h.

anonymous enum
Enumerator
NETWORK_GRAPH_TRAFFIC_RX 

Incoming traffic.

NETWORK_GRAPH_TRAFFIC_TX 

Outgoing traffic.

NETWORK_GRAPH_TRAFFIC_MAX 

Number of traffic types.

Definition at line 42 of file network_graph.h.

Function Documentation

void network_graph_update ( int  type,
int  traffic,
size_t  bytes 
)

Updates all network graph widgets with new data.

Parameters
typeThe network graph type.
trafficThe traffic type (tx/rx).
bytesBytes.
Note
This function is thread-safe.

Definition at line 440 of file network_graph.c.

void widget_network_graph_init ( widgetdata widget)

Initializes one network graph widget.

Parameters
widgetThe widget.

Definition at line 464 of file network_graph.c.