![]() |
VR-Link API Documentation for DIS
|
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... | |
Macros | |
| #define | vlSocket_inl_ |
Enumerations | |
| enum | DtTestOperator { Dto_EQ, Dto_NEQ } |
| enum | DtFilterType { DtFtInetAddr, DtFtNetU8 } |
| enum | DtFlushStatus { DtFlushError = -1, DtFlushIncomplete, DtFlushComplete } |
Functions | |
| DT_DLL_NETCOMPAT DtSocket * | DtNewDfltSocket (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. More... | |
| DT_DLL_NETCOMPAT void | DtSetMaxPacketSize (int size) |
| Sets the maximum size for a packet to be sent through a DtSocket class. More... | |
Socket Macros | |
|
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)
| |
| #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) |
This file declares DtSocket as well as several useful constents and helper classes.
| #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_ |
| enum DtFilterType |
| Enumerator | |
|---|---|
| DtFtInetAddr | |
| DtFtNetU8 | |
| enum DtFlushStatus |
| Enumerator | |
|---|---|
| DtFlushError | |
| DtFlushIncomplete |
error during flush |
| DtFlushComplete |
= 0, buffered data remains to be flushed = 1, buffered data completely flushed |
| enum DtTestOperator |
| Enumerator | |
|---|---|
| Dto_EQ | |
| Dto_NEQ | |
| DT_DLL_NETCOMPAT DtSocket* DtNewDfltSocket | ( | int | port, |
| DtIpv4Addr | destAddr = 0, |
||
| bool | use_async = false |
||
| ) |
| const DtIpv4Addr DtUSE_DEFAULT_IP_ADDR = DtIpv4Addr(0) |