7 #ifndef SRC_PORTS_SOCKET_TIMER_H_
8 #define SRC_PORTS_SOCKET_TIMER_H_
61 const size_t array_length);
74 const size_t array_length,
87 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.
Data structure to store last usage times for sockets.
SocketTimer * SocketTimerArrayGetEmptySocketTimer(SocketTimer *const array_of_socket_timers, const size_t array_length)
Get an empty Socket Timer entry.
void SocketTimerClear(SocketTimer *const socket_timer)
Clears a Socket Timer entry.
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.
MilliSeconds SocketTimerGetLastUpdate(SocketTimer *const socket_timer)
Gets time stamp of the last update.
unsigned long MilliSeconds
struct socket_timer SocketTimer
Data structure to store last usage times for sockets.
void SocketTimerSetLastUpdate(SocketTimer *const socket_timer, const MilliSeconds actual_time)
Sets time stamp entry of the Socket Timer.
void SocketTimerSetSocket(SocketTimer *const socket_timer, const int socket)
Sets socket of a Socket Timer.