CONST_DPNSENDFLAGS
Contains flags that can be set in the DirectPlay8Client.Send, DirectPlay8Server.SendTo, and DirectPlay8Peer.SendTo methods to control how messages are sent.
Enum CONST_DPNSENDFLAGS
DPNSEND_COMPLETEONPROCESS = 4
DPNSEND_GUARANTEED = 8
DPNSEND_NOCOMPLETE = 1
DPNSEND_NOCOPY = 2
DPNSEND_NOLOOPBACK = 32 (&H20)
DPNSEND_NONSEQUENTIAL = 16 (&H10)
DPNSEND_PRIORITY_HIGH = 128 (&H80)
DPNSEND_PRIORITY_LOW = 64 (&H40)
DPNSEND_SYNC = -2147483648 (&H80000000)
End Enum
Constants
- DPNSEND_COMPLETEONPROCESS
- Call the DirectPlay8Event.SendComplete method in the message handler when this message has been delivered to the target and the target's message handler returns from indicating its reception. There is additional internal message overhead when this flag is set, and the message transmission process may become significantly slower. If you set this flag, DPNSEND_GUARANTEED must also be set.
- DPNSEND_GUARANTEED
- Send the message by a guaranteed method of delivery.
- DPNSEND_NOCOMPLETE
- Do not call the DirectPlay8Event.SendComplete method in the sender's message handler. There is additional internal message overhead when this flag is set, and the message sends process is significantly slower. This flag cannot be combined with DPNSEND_NOCOPY.
- DPNSEND_NOCOPY
- Use the data in the buffer() parameter type and do not make an internal copy. This might be a more efficient method of sending data. However, it is less robust because the sender might be able to modify the message before the receiver has processed it. This flag cannot be combined with DPNSEND_NOCOMPLETE or DPNSEND_GUARANTEED.
- DPNSEND_NOLOOPBACK
- Do not call the DirectPlay8Event.Receive method in your message handler when you are sending to yourself. This flag is useful if you are broadcasting to the entire session, or you are sending a message to a group that you are a member of.
- DPNSEND_NONSEQUENTIAL
- Messages are delivered to the target application in the order that they are received. If the flag is not set, messages are delivered to the target application in the order that they are sent, which may necessitate buffering out-of-sequence messages until the missing messages arrive.
- DPNSEND_PRIORITY_HIGH
- Sets the priority of the message to high.
- DPNSEND_PRIORITY_LOW
- Sets the priority of the message to low.
- DPNSEND_SYNC
- Process the SendTo request synchronously.