|
OpENer - Open Source EtherNet/IP(TM) I/O Target Stack
2.1
|
#include <unistd.h>#include <sys/time.h>#include <time.h>#include <fcntl.h>#include "networkhandler.h"#include "opener_error.h"#include "trace.h"#include "encap.h"#include "opener_user_conf.h"Go to the source code of this file.
Functions | |
| void | CloseSocketPlatform (int socket_handle) |
| Platform dependent code to close a socket. More... | |
| MicroSeconds | GetMicroSeconds (void) |
| This function shall return the current time in microseconds relative to epoch, and shall be implemented in a port specific networkhandler. More... | |
| 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 (const int socket, CipUsint qos_value) |
| int | SetSocketToNonBlocking (int socket_handle) |
| void CloseSocketPlatform | ( | int | socket_handle | ) |
Platform dependent code to close a socket.
| socket_handle | The socket handle to be closed |
Definition at line 37 of file networkhandler.c.
References FreeErrorMessage(), GetErrorMessage(), GetSocketErrorNumber(), and OPENER_TRACE_ERR.
| MicroSeconds GetMicroSeconds | ( | void | ) |
This function shall return the current time in microseconds relative to epoch, and shall be implemented in a port specific networkhandler.
Definition at line 18 of file networkhandler.c.
References OPENER_ASSERT.
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.
References GetMicroSeconds().
| EipStatus NetworkHandlerInitializePlatform | ( | void | ) |
Executes platform dependent network handler initialization code.
Definition at line 32 of file networkhandler.c.
References kEipStatusOk.
| int SetQosOnSocket | ( | const int | socket, |
| CipUsint | qos_value | ||
| ) |
Definition at line 56 of file networkhandler.c.
| int SetSocketToNonBlocking | ( | int | socket_handle | ) |
Definition at line 50 of file networkhandler.c.