File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212#include < Fw/Time/TimeInterval.hpp>
1313#ifndef REF_IPCFG_HPP
1414#define REF_IPCFG_HPP
15+ #ifdef TGT_OS_TYPE_VXWORKS
16+ #include < socket.h>
17+ #elif defined TGT_OS_TYPE_LINUX || TGT_OS_TYPE_DARWIN
18+ #include < sys/socket.h>
19+ #else
20+ #error OS not supported for IP Socket Communications
21+ #endif
1522
1623enum IpCfg {
1724 SOCKET_SEND_TIMEOUT_SECONDS = 1 , // Seconds component of timeout to an individual send
@@ -23,14 +30,6 @@ enum IpCfg {
2330};
2431static const Fw::TimeInterval SOCKET_RETRY_INTERVAL = Fw::TimeInterval(1 , 0 );
2532
26- #ifdef TGT_OS_TYPE_VXWORKS
27- #include < socket.h>
28- #elif defined TGT_OS_TYPE_LINUX || TGT_OS_TYPE_DARWIN
29- #include < sys/socket.h>
30- #else
31- #error OS not supported for IP Socket Communications
32- #endif
33-
3433// Value type enumeration
3534enum SocketOptionValueType {
3635 SOCK_OPT_INT , // Integer value
You can’t perform that action at this time.
0 commit comments