OpENer - Open Source EtherNet/IP(TM) I/O Target Stack
2.1
|
Go to the source code of this file.
Functions | |
SocketTimer * | SocketTimerArrayGetEmptySocketTimer (SocketTimer *const array_of_socket_timers, const size_t array_length) |
Get an empty Socket Timer entry. More... | |
SocketTimer * | SocketTimerArrayGetSocketTimer (SocketTimer *const array_of_socket_timers, const size_t array_length, const int socket) |
Get the Socket Timer entry with the spezified socket value. More... | |
void | SocketTimerArrayInitialize (SocketTimer *const array_of_socket_timers, const size_t array_length) |
Initializes an array of Socket Timer entries. More... | |
void | SocketTimerClear (SocketTimer *const socket_timer) |
Clears a Socket Timer entry. More... | |
MilliSeconds | SocketTimerGetLastUpdate (SocketTimer *const socket_timer) |
Gets time stamp of the last update. More... | |
void | SocketTimerSetLastUpdate (SocketTimer *const socket_timer, const MilliSeconds actual_time) |
Sets time stamp entry of the Socket Timer. More... | |
void | SocketTimerSetSocket (SocketTimer *const socket_timer, const int socket) |
Sets socket of a Socket Timer. More... | |
SocketTimer* SocketTimerArrayGetEmptySocketTimer | ( | SocketTimer *const | array_of_socket_timers, |
const size_t | array_length | ||
) |
Get an empty Socket Timer entry.
array_of_socket_timers | The Socket Timer array |
array_length | The Socket Timer array length |
Definition at line 53 of file socket_timer.c.
References SocketTimerArrayGetSocketTimer().
Referenced by CheckAndHandleTcpListenerSocket(), and HandleReceivedRegisterSessionCommand().
SocketTimer* SocketTimerArrayGetSocketTimer | ( | SocketTimer *const | array_of_socket_timers, |
const size_t | array_length, | ||
const int | socket | ||
) |
Get the Socket Timer entry with the spezified socket value.
array_of_socket_timers | The Socket Timer array |
array_length | The Socket Timer array length |
socket | The socket value to be searched for |
Definition at line 41 of file socket_timer.c.
Referenced by CheckEncapsulationInactivity(), HandleDataOnTcpSocket(), RemoveSocketTimerFromList(), and SocketTimerArrayGetEmptySocketTimer().
void SocketTimerArrayInitialize | ( | SocketTimer *const | array_of_socket_timers, |
const size_t | array_length | ||
) |
Initializes an array of Socket Timer entries.
array_of_socket_timers | The array of Socket Timer entries to be initialized |
array_length | the length of the array |
Definition at line 34 of file socket_timer.c.
References SocketTimerClear().
Referenced by NetworkHandlerInitialize().
void SocketTimerClear | ( | SocketTimer *const | socket_timer | ) |
Clears a Socket Timer entry.
socket_timer | Socket Timer to be cleared |
Definition at line 29 of file socket_timer.c.
References socket_timer::last_update, and socket_timer::socket.
Referenced by RemoveSocketTimerFromList(), and SocketTimerArrayInitialize().
MilliSeconds SocketTimerGetLastUpdate | ( | SocketTimer *const | socket_timer | ) |
Gets time stamp of the last update.
socket_timer | Socket Timer to be set |
Definition at line 25 of file socket_timer.c.
References socket_timer::last_update.
Referenced by CheckEncapsulationInactivity().
void SocketTimerSetLastUpdate | ( | SocketTimer *const | socket_timer, |
const MilliSeconds | actual_time | ||
) |
Sets time stamp entry of the Socket Timer.
socket_timer | Socket Timer to be set |
actual_time | Time stamp |
Definition at line 17 of file socket_timer.c.
References socket_timer::last_update, OPENER_TRACE_INFO, and socket_timer::socket.
Referenced by HandleDataOnTcpSocket(), and HandleReceivedRegisterSessionCommand().
void SocketTimerSetSocket | ( | SocketTimer *const | socket_timer, |
const int | socket | ||
) |
Sets socket of a Socket Timer.
socket_timer | Socket Timer to be set |
socket | Socket handle |
Definition at line 11 of file socket_timer.c.
References OPENER_TRACE_INFO, and socket_timer::socket.
Referenced by HandleReceivedRegisterSessionCommand().