VR-Link API Documentation for DIS
Classes | Defines | Enumerations | Functions

This file declares DtSocket as well as several useful constents and helper classes. More...

Go to the source code of this file.

Classes

class  DtFilterTest
class  DtSocket
 DtSocket provides a low level interface for packet I/O with VR-Link applications. More...

Defines

#define vlSocket_inl_

Enumerations

enum  DtTestOperator { Dto_EQ, Dto_NEQ }
enum  DtFilterType { DtFtInetAddr, DtFtNetU8 }
enum  DtFlushStatus { DtFlushError = -1, DtFlushIncomplete, DtFlushComplete }

Functions

DT_DLL_NETCOMPAT DtSocketDtNewDfltSocket (int port, DtIpv4Addr destAddr=0, bool use_async=false)
DT_DLL_NETCOMPAT int DtMaxPacketSize ()
 The maximum size for a packet, by default set to DtDEFAULT_MAX_PACKET_SIZE.
DT_DLL_NETCOMPAT void DtSetMaxPacketSize (int size)
 Sets the maximum size for a packet to be sent through a DtSocket class.

Socket Macros

IP + UDP headers are 20 + 8.

Ethernet MTU is 1500 (or 1492 for 802.3 encapsulation), thus PDU limits will typically be 1472 or 1464 FDDI MTU is 4352 (PDU limit 4324) IEEE 802.5 token ring MTU is 4464 (PDU limit of 4436)

Deprecated:
This class is replaced by DtInetSocket as of VR-Link 3.13
#define DtDEFAULT_MAX_PACKET_SIZE   15000
#define DtDEFAULT_PORT   3000
#define DtSOCKET_PACKET   1
#define DtSOCKET_NO_PACKET   0
#define DtSOCKET_SERVER_MSG   -1
#define DtSOCKET_FILTERED_PACKET   -2
#define DtSOCKET_FILTERED_BY_PORT   -3
const DtIpv4Addr DtUSE_DEFAULT_IP_ADDR = DtIpv4Addr(0)

Detailed Description

This file declares DtSocket as well as several useful constents and helper classes.


Define Documentation

#define DtDEFAULT_MAX_PACKET_SIZE   15000
#define DtDEFAULT_PORT   3000
#define DtSOCKET_FILTERED_BY_PORT   -3
#define DtSOCKET_FILTERED_PACKET   -2
#define DtSOCKET_NO_PACKET   0
#define DtSOCKET_PACKET   1
#define DtSOCKET_SERVER_MSG   -1
#define vlSocket_inl_

Enumeration Type Documentation

Deprecated:
This class is replaced by DtInetSocket as of VR-Link 3.13
Enumerator:
DtFtInetAddr 
DtFtNetU8 
Deprecated:
This class is replaced by DtInetSocket as of VR-Link 3.13
Enumerator:
DtFlushError 
DtFlushIncomplete 

error during flush

DtFlushComplete 

= 0, buffered data remains to be flushed

= 1, buffered data completely flushed

Deprecated:
This class is replaced by DtInetSocket as of VR-Link 3.13
Enumerator:
Dto_EQ 
Dto_NEQ 

Function Documentation

DT_DLL_NETCOMPAT DtSocket* DtNewDfltSocket ( int  port,
DtIpv4Addr  destAddr = 0,
bool  use_async = false 
)
Deprecated:
This class is replaced by DtInetSocket as of VR-Link 3.13

Variable Documentation


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)