VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlInet.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
10 #pragma once
11 
12 #include <vlutil/vlUtil.h>
13 #include <vlutil/vlMachineTypes.h>
14 #include <vlutil/vlNetTypes.h>
15 #include <vlutil/vlFedTarget.h> // for DtBest_Effort and DtReliable
16 #include <limits.h>
17 
18 #ifdef _WIN32
19 #include <IPHlpApi.h>
20 #else
21 #include <netinet/in.h>
22 #endif
23 
24 extern "C"
25 {
26 #ifdef _WIN32
27 #include <errno.h>
28 #define ERRNO WSAGetLastError()
29 #else // !_WIN32
30 #define ERRNO errno
31 #endif // !_WIN32
32 
33 #ifdef _WIN32
34 #include <errno.h>
37 //Undefine the macros before we redefine. This avoids compiler warnings in VC10.
38 #undef ERRNO
39 #undef EINPROGRESS
40 #undef ENOBUFS
41 #undef EWOULDBLOCK
42 #undef ECONNRESET
43 #undef ECONNABORTED
44 
45 #define ERRNO WSAGetLastError()
46 #define EINPROGRESS WSAEINPROGRESS
47 #define ENOBUFS WSAENOBUFS
48 #ifndef EFAULT
49 #define EFAULT WSAEFAULT
50 #endif
51 #define EWOULDBLOCK WSAEWOULDBLOCK
52 #define ECONNRESET WSAECONNRESET
53 #define ECONNABORTED WSAECONNABORTED
54 #ifndef EAGAIN
55 #define EAGAIN WSAEWOULDBLOCK
56 #endif
57 #endif
58 }
59 
60 #ifdef DtUSE_UTILITIES_NAMESPACE
61 namespace DtUSE_UTILITIES_NAMESPACE
62 {
63 #endif
64 
69 #define DtDEFAULT_SOCK_BUFF_SIZE 65504 // Since Win32 MAX_MSG_SIZE is 65507
70  // we round down to nearest multiple of 2
71 
73 
76 
78 
81 
83 
84 
85 #ifdef DtUSE_UTILITIES_NAMESPACE
86 }
87 #endif
88 
This file contains the declaration of DtFedTarget and several helper classes.
provides basic Operating Independent Methods useful to a federate
This file contains typedefs for machine dependant types.

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)