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 NETWORKHANDLER_H_
7 #define NETWORKHANDLER_H_
8 
9 #include "typedefs.h"
10 
11 #define OPENER_SOCKET_WOULD_BLOCK WSAEWOULDBLOCK
12 
13 typedef unsigned long socklen_t;
14 
16 
21 void CloseSocketPlatform(int socket_handle);
22 
23 int SetSocketToNonBlocking(int socket_handle);
24 
30 
36 
37 int SetQosOnSocket(int socket,
38  CipUsint qos_value);
39 
40 #endif /*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
unsigned long socklen_t
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...