13 socket_timer->
socket = socket;
19 if (NULL != socket_timer) {
30 socket_timer->
socket = kEipInvalidSocket;
35 const size_t array_length) {
36 for (
size_t i = 0; i < array_length; ++i) {
43 const size_t array_length,
45 for (
size_t i = 0; i < array_length; ++i) {
46 if (socket == array_of_socket_timers[i].socket) {
47 return &array_of_socket_timers[i];
55 const size_t array_length) {
void SocketTimerArrayInitialize(SocketTimer *const array_of_socket_timers, const size_t array_length)
Initializes an array of Socket Timer entries.
Tracing infrastructure for OpENer.
MilliSeconds SocketTimerGetLastUpdate(SocketTimer *const socket_timer)
Gets time stamp of the last update.
Data structure to store last usage times for sockets.
void SocketTimerClear(SocketTimer *const socket_timer)
Clears a Socket Timer entry.
#define OPENER_TRACE_INFO(...)
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.
SocketTimer * SocketTimerArrayGetEmptySocketTimer(SocketTimer *const array_of_socket_timers, const size_t array_length)
Get an empty Socket Timer entry.
unsigned long MilliSeconds
void SocketTimerSetSocket(SocketTimer *const socket_timer, const int socket)
Sets socket of a Socket Timer.
void SocketTimerSetLastUpdate(SocketTimer *const socket_timer, const MilliSeconds actual_time)
Sets time stamp entry of the Socket Timer.