![]() |
VR-Link API Documentation for DIS
|
This file contains definitions common to the Shared Memory Packet Server and its clients. More...
Go to the source code of this file.
Classes | |
| struct | DtCsMsgHdr |
| struct | DtCsMsgWaiting |
| No padding is needed, since this goes via a socket. More... | |
| struct | DtCsAddClient |
| struct | DtCsClientPacket |
| We want this as a separate structure, because we will use Writev() to send one of these plus the packet. More... | |
| struct | DtCsControlReq |
| struct | DtCsMulticastReq |
| struct | DtCsFilter |
| struct | DtCsAck |
| struct | DtCsCliQuota |
| No padding is needed, because this is sent via a socket. More... | |
| struct | DtCsServerMsgWaiting |
| No padding is needed, because this is sent via a socket. More... | |
| struct | DtCsServerPacket |
| We want this as a separate structure, because we will use Writev() to send one of these plus the packet. More... | |
| struct | DtCsStateReturn |
| struct | DtCsCStateReturn |
| struct | DtCsWarning |
| struct | DtCsNotice |
| union | DtCsMsg |
| class | DtClientServerMsg |
| class | DtSocketMsg |
| class | DtCsMsgWaitingMsg |
| class | DtCsAddClientMsg |
Enumerations | |
| enum | DtOpenUnixDgramAction { DtBIND, DtCONNECT } |
| !PCFTP More... | |
Functions | |
| int | DtOpenUnixDgram (char *path, DtOpenUnixDgramAction action, char *who) |
| int | DtPacketServerIsAlive (int port) |
This file contains definitions common to the Shared Memory Packet Server and its clients.
| #define DtCsAckKind 6 |
These next two are sent to the Client via the Client's socket.
| #define DtCsAddClientKind 1 |
These are sent to the Server via the Server's well-known socket.
| #define DtCsClientPacketKind 2 |
| #define DtCsClientPathSize 160 |
| #define DtCsClientTypeControl 1 |
| #define DtCsClientTypePacket 0 |
| #define DtCsCliQuotaKind 7 |
| #define DtCsControlReqKind 4 |
| #define DtCsCrCState 5 |
| #define DtCsCrDisconnect 7 |
| #define DtCsCrExternal 0 |
| #define DtCsCrInternal 1 |
| #define DtCsCrNoUnbundle 9 |
| #define DtCsCrPing 3 |
| #define DtCsCrQuit 6 |
| #define DtCsCrState 4 |
| #define DtCsCrTestClients 2 |
| #define DtCsCrUnbundle 8 |
| #define DtCsCStateClientBlockRead 0x04 |
| #define DtCsCStateClientBlockWrite 0x08 |
| #define DtCsCStateReturnKind 10 |
| #define DtCsCStateServerBlockRead 0x01 |
blockFlags look like:
| #define DtCsCStateServerBlockWrite 0x02 |
| #define DtCsFilterKind 5 |
| #define DtCsFilterOpAddValue 1 |
| #define DtCsFilterOpSetOperator 0 |
| #define DtCsFilterTypeExercise 0 |
| #define DtCsFilterTypeIpAddr 3 |
| #define DtCsFilterTypePduKind 2 |
| #define DtCsFilterTypeVersion 1 |
| #define DtCsFlagsClientDropOldest 0x0010 |
| #define DtCsFlagsControlOnly 0x0100 |
| #define DtCsFlagsDontNotify 0x0080 |
| #define DtCsFlagsDropOldest |
| #define DtCsFlagsRead 0x0001 |
| #define DtCsFlagsReadResourceWait 0x0020 |
| #define DtCsFlagsReadWrite (DtCsFlagsRead | DtCsFlagsWrite) |
| #define DtCsFlagsResourceWait |
| #define DtCsFlagsServerChooseDropMode 0x0004 |
| #define DtCsFlagsServerDropOldest 0x0008 |
| #define DtCsFlagsWrite 0x0002 |
| #define DtCsFlagsWriteResourceWait 0x0040 |
| #define DtCsMaxWarningSize 160 |
| #define DtCsMsgWaitingKind 0 |
This is sent to client and server via sockets.
| #define DtCsMSubscribe 0 |
| #define DtCsMulticastReqKind 13 |
| #define DtCsMUnsubscribe 1 |
| #define DtCsNClosing 4 |
| #define DtCsNExtCliQuota 2 |
| #define DtCsNExternal 0 |
| #define DtCsNInternal 1 |
| #define DtCsNoticeKind 12 |
| #define DtCsNPing 3 |
| #define DtCsOperatorEQ 0 |
| #define DtCsOperatorNEQ 1 |
| #define DtCsServerPacketKind 8 |
The rest are sent via shared memory.
| #define DtCsStateReturnKind 9 |
| #define DtCsUseDefaultSize -1 |
| #define DtCsVersionApril95 2 |
| #define DtCsVersionCurrent DtCsVersionSeptember95 |
| #define DtCsVersionSeptember95 3 |
| #define DtCsWarningKind 11 |
| #define DtMinimumSendQSizeSupportedByVers2Server 32 |
| int DtOpenUnixDgram | ( | char * | path, |
| DtOpenUnixDgramAction | action, | ||
| char * | who | ||
| ) |
| int DtPacketServerIsAlive | ( | int | port | ) |