MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
makRti.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: makRti.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 // This file contains extensions to the standard RTI interface
10 // that are supported by the MAK RTI.
11 
12 #if !defined(DtIFSPEC13)
13 #include <memory>
14 #include <RTI/RTIambassador.h>
15 #endif
16 #include <rtiApiTypes.h>
17 
18 namespace MAKRti
19 {
20  class DtString;
21 }
22 
23 
25 void RTI_EXPORT checkVersion(const MAKRti::DtString& version);
26 
27 
28 // Dynamically set the RTI notify level
29 // 0 - Fatal, 1 - Warning, 2 - Info, 3 - Verbose, 4+ - Debug
30 void RTI_EXPORT setRtiNotifyLevel(RTI_API::RTIambassador* amb, int level);
31 
34 
37 
38 // Depreciated: Only for best effort
39 // Returns a file descriptor on which data will be present whenever
40 // there is incoming data waiting to be read by the RTI. This can be
41 // used in a call to select to avoid calling RTI::tick until there
42 // is actually data waiting. Returns -1 if no such file descriptor.
43 int RTI_EXPORT DtReadFileDescriptor(RTI_API::RTIambassador* amb);
44 
45 // Returns a file descriptor on which data will be present for the given
46 // transport type whenever there is incoming data waiting to be read by the RTI. This can be
47 // The file descriptors can be used in a call to select to avoid
48 // calling RTI::tick until there is actually data waiting.
49 // Returns -1 if no such file descriptor.
50 //
51 // (Note: when running in asynchronous mode (RTI_asynchronousIO = 1)
52 // this function will return -1 on windows, use DtReadFileEvent instead.
53 // On unix it will return the file descriptor of the pipe used for
54 // inter-thread communication instead of the socket file descriptor.)
55 int RTI_EXPORT DtReadFileDescriptor(RTI_API::RTIambassador* amb, DtRtiApiTransportationType transport);
56 
57 #if defined(_WIN32)
58 // Returns a WIN32 event handle that signals when data is present for
59 // the given transport type. It can be used in calls such as
60 // WaitForSingleObject to avoid calling RTI::Tick until there is
61 // data waiting. When operating synchronously the event returned
62 // is based upon the socket specified by transport. In asynchronous
63 // mode it returns the event used for inter-thread signalling
64 // regardless of the transport type.
65 #include "winsock2.h"
66 WSAEVENT RTI_EXPORT DtReadFileEvent(RTI_API::RTIambassador* amb, DtRtiApiTransportationType transport);
67 
68 #endif
#define RTI_EXPORT
Definition: SpecificConfig.h:55
void RTI_EXPORT DtPrintAboutInfo()
Print RTI about information.
void RTI_EXPORT setRtiNotifyLevel(RTI_API::RTIambassador *amb, int level)
RTI_API::TransportationTypeHandle DtRtiApiTransportationType
Definition: rtiApiTypes.h:114
void RTI_EXPORT DtPrintAboutInfoWithoutHlaVersion()
Print RTI about information.
int RTI_EXPORT DtReadFileDescriptor(RTI_API::RTIambassador *amb)
This file contains the rti1516e::RTIambassador class.
void RTI_EXPORT checkVersion(const MAKRti::DtString &version)
Called by the exec application to make sure that the RTI Version matches.

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)