V
P
ISUAL
AYMENTS
vpSendPacket()
vpSendPacket()
258
M
X
800 S
P
ERIES
ROGRAMMERS
Sends the packet to VP server after adding the wrappers. This is used for both Up
and Down Channel messages.
Prototype
int vpSendPacket(int iFd, int iOptions, unsigned short ushMsgNum, char
*pchOutBuf, unsigned short ushLength);
Parameters
Socket fd
iFd
Bit defined options:
iOptions
0x0002 Wait for ACK
0 = Message Number included
ushMsgNum
0 > Insert this Message Number
Pointer to data buffer to send
pchOutBuf
Length of payload data
ushLength
Return Values
Returns bytes sent or error. The VP library will wait for the ACK and do the retries,
if required, before returning.
G
UIDE