VR-Link API Documentation for HLA Evolved
vlInet.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00010 #pragma once
00011 
00012 #include <vlutil/vlUtil.h>
00013 #include <vlutil/vlMachineTypes.h>
00014 #include <vlutil/vlNetTypes.h>
00015 #include <vlutil/vlFedTarget.h> // for DtBest_Effort and DtReliable
00016 #include <limits.h>
00017 
00018 #ifdef _WIN32
00019 #include <IPHlpApi.h>
00020 #else
00021 #include <netinet/in.h>
00022 #endif 
00023 
00024 extern "C" 
00025 {
00026 #ifdef _WIN32
00027 #include <errno.h>
00028 #define ERRNO WSAGetLastError()
00029 #else // !_WIN32
00030 #define ERRNO errno
00031 #endif // !_WIN32
00032 
00033 #ifdef _WIN32
00034 
00035 
00036 #include <errno.h>
00037 #define ERRNO                   WSAGetLastError()
00038 #define EINPROGRESS             WSAEINPROGRESS
00039 #define ENOBUFS                 WSAENOBUFS
00040 #ifndef EFAULT
00041 #define EFAULT                  WSAEFAULT
00042 #endif
00043 #define EWOULDBLOCK             WSAEWOULDBLOCK
00044 #define ECONNRESET              WSAECONNRESET
00045 #define ECONNABORTED            WSAECONNABORTED
00046 #ifndef EAGAIN
00047 #define EAGAIN                  WSAEWOULDBLOCK
00048 #endif
00049 #endif
00050 }
00051 
00052 #ifdef DtUSE_UTILITIES_NAMESPACE
00053 namespace DtUSE_UTILITIES_NAMESPACE
00054 {
00055 #endif
00056 
00061 #define DtDEFAULT_SOCK_BUFF_SIZE 65504 // Since Win32 MAX_MSG_SIZE is 65507
00062                                        // we round down to nearest multiple of 2
00063 
00065 
00068 
00070 
00073 
00075 
00076 
00077 #ifdef DtUSE_UTILITIES_NAMESPACE
00078 } 
00079 #endif
00080 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)