14 #ifndef GENERIC_NETWORKHANDLER_H_
15 #define GENERIC_NETWORKHANDLER_H_
26 #include "networkhandler.h"
#define OPENER_NUMBER_OF_SUPPORTED_SESSIONS
Number of sessions that can be handled at the same time.
MilliSeconds g_actual_time
Data structure to store last usage times for sockets.
void CloseTcpSocket(int socket_handle)
int udp_global_broadcast_listener
Responsible for Endianess conversion.
SocketTimer g_timestamps[OPENER_NUMBER_OF_SUPPORTED_SESSIONS]
struct timeval g_time_value
int GetMaxSocket(int socket1, int socket2, int socket3, int socket4)
Returns the socket with the highest id.
EipBool8 CheckSocketSet(int socket)
check if the given socket is set in the read set
EipStatus
EIP stack status enum.
EipStatus NetworkHandlerInitialize(void)
The platform independent part of network handler initialization routine.
int highest_socket_handle
NetworkStatus g_network_status
EipStatus NetworkHandlerProcessOnce(void)
Struct representing the current network status.
int g_current_active_tcp_socket
This variable holds the TCP socket the received to last explicit message. It is needed for opening po...
EipStatus NetworkHandlerFinish(void)
MilliSeconds elapsed_time
void CloseUdpSocket(int socket_handle)
unsigned long MilliSeconds