LogUtilities 1.5.1
A small compiled library for C logging and configuration utility functions.
|
Functions for initializing and accessing network connection information.
More...
Data Structures | |
struct | ConnectionData |
Data structure related to connection IP and port addresses. More... | |
Enumerations | |
enum | Connection { CONN_RENDER_SERVER_CURSOR = 0 , CONN_RENDER_SERVER_TARGET = 1 , CONN_SERVER_CONTROLLER_PARAMETER = 2 , CONN_SERVER_CONTROLLER_COMMAND = 3 , CONN_REWARDER_CONTROLLER_COMMAND = 4 , CONN_SERVER_PLEXON_CURSOR = 5 , CONN_SERVER_CONTROLLER_TARGET = 6 , CONN_CONTROLLER_SERVER_REQUEST = 7 , CONN_RENDER_SERVER_PARAMETER = 8 , CONN_RENDER_SERVER_SOUND = 9 , CONN_CONTROLLER_SERVER_PARAMETER = 10 , CONN_CONTROLLER_SERVER_STATE = 11 , CONN_SERVER_CONTROLLER_CALIBRATION = 12 , CONN_CONTROLLER_SERVER_CALIBRATION = 13 } |
Enumeration of state transitions. More... | |
Functions | |
uint16_t | getPort (const ConnectionData *network, Connection conn) |
Get the port number corresponding to the desired connection. | |
void | initConnectionData (ConnectionData *network) |
Initialize a ConnectionData structure. | |
Functions for initializing and accessing network connection information.
These functions and data structures are included in the LogUtilities
library because it's easiest to define the actual IP address and port values using a .yaml
configuration file.
enum Connection |
Enumeration of state transitions.
Enumerations are named using the following convention:
Where the _
delimited names indicate:
CLIENT
: The device with the "client" socket. SERVER
: The device with the "server" socket. PORT
: The name indicating which numeric port is used on each device. uint16_t getPort | ( | const ConnectionData * | network, |
Connection | conn ) |
Get the port number corresponding to the desired connection.
network | Pointer to ConnectionData struct with network address and port information. |
conn | Enumerated connection identifier. |
void initConnectionData | ( | ConnectionData * | network | ) |
Initialize a ConnectionData structure.
network | Pointer to ConnectionData structure. |
< IP address of device running the controller UI.
< IP address of the Plexon host computer.
< IP address of device rendering the task.
< IP address of device issuing rewards on the task.
< IP address of device running the state server.