OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
networkhandler.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2009, Rockwell Automation, Inc.
3  * All rights reserved.
4  *
5  ******************************************************************************/
6 #ifndef OPENER_NETWORKHANDLER_H_
7 #define OPENER_NETWORKHANDLER_H_
8 
9 #include <string.h>
10 #include <sys/socket.h>
11 #include <sys/types.h>
12 #include <netinet/in.h>
13 
14 #include "typedefs.h"
15 
16 #define OPENER_SOCKET_WOULD_BLOCK EWOULDBLOCK
17 
23 
28 void CloseSocketPlatform(int socket_handle);
29 
30 int SetSocketToNonBlocking(int socket_handle);
31 
37 
43 
44 int SetQosOnSocket(const int socket,
45  CipUsint qos_value);
46 
47 #endif /* OPENER_NETWORKHANDLER_H_ */
void CloseSocketPlatform(int socket_handle)
Platform dependent code to close a socket.
EipStatus NetworkHandlerInitializePlatform(void)
unsigned long long MicroSeconds
Definition: typedefs.h:69
EipStatus
EIP stack status enum.
Definition: typedefs.h:93
uint8_t CipUsint
Definition: typedefs.h:46
int SetQosOnSocket(int socket, CipUsint qos_value)
unsigned long MilliSeconds
Definition: typedefs.h:68
int SetSocketToNonBlocking(int socket_handle)
MilliSeconds GetMilliSeconds(void)
This function shall return the current time in milliseconds relative to epoch, and shall be implement...
MicroSeconds GetMicroSeconds(void)
This function shall return the current time in microseconds relative to epoch, and shall be implement...