|
OpENer - Open Source EtherNet/IP(TM) I/O Target Stack
2.1
|
#include <string.h>#include <stdlib.h>#include <winsock2.h>#include <windows.h>#include <Ws2tcpip.h>#include "networkhandler.h"#include "generic_networkhandler.h"Go to the source code of this file.
Macros | |
| #define | WIN32_LEAN_AND_MEAN |
Functions | |
| void | CloseSocketPlatform (int socket_handle) |
| Platform dependent code to close a socket. More... | |
| MicroSeconds | getMicroSeconds () |
| MilliSeconds | GetMilliSeconds (void) |
| This function shall return the current time in milliseconds relative to epoch, and shall be implemented in a port specific networkhandler. More... | |
| EipStatus | NetworkHandlerInitializePlatform (void) |
| Executes platform dependent network handler initialization code. More... | |
| int | SetQosOnSocket (int socket, CipUsint qos_value) |
| int | SetSocketToNonBlocking (int socket_handle) |
| #define WIN32_LEAN_AND_MEAN |
Definition at line 6 of file networkhandler.c.
| void CloseSocketPlatform | ( | int | socket_handle | ) |
Platform dependent code to close a socket.
| socket_handle | The socket handle to be closed |
Definition at line 40 of file networkhandler.c.
Referenced by CloseSocket().
| MicroSeconds getMicroSeconds | ( | ) |
Definition at line 17 of file networkhandler.c.
Referenced by GetMilliSeconds().
| MilliSeconds GetMilliSeconds | ( | void | ) |
This function shall return the current time in milliseconds relative to epoch, and shall be implemented in a port specific networkhandler.
Definition at line 28 of file networkhandler.c.
Referenced by NetworkHandlerInitialize(), and NetworkHandlerProcessOnce().
| EipStatus NetworkHandlerInitializePlatform | ( | void | ) |
Executes platform dependent network handler initialization code.
Definition at line 32 of file networkhandler.c.
Referenced by NetworkHandlerInitialize().
| int SetQosOnSocket | ( | int | socket, |
| CipUsint | qos_value | ||
| ) |
Definition at line 49 of file networkhandler.c.
Referenced by CheckAndHandleTcpListenerSocket(), and CreateUdpSocket().
| int SetSocketToNonBlocking | ( | int | socket_handle | ) |
Definition at line 44 of file networkhandler.c.
Referenced by CreateUdpSocket(), and NetworkHandlerInitialize().