Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IUdpSocket::send ( P6UINT8 pBuffer,
P6UINT32  cBuffer,
P6UINT32 pcBytesSent,
P6INTERVAL  timeout 
)
pure virtual

This method is used to send a datagram on a connected socket.

The datagram will be sent to the endpoint that was specified in the call to connect.

Parameters
pBufferA pointer to a buffer containing the datagram to send
cBufferThe size in bytes of the datagram to send
pcBytesSentThe address of a P6UINT32 in which will be placed the number of bytes sent.
timeout[ in ] The time in milliseconds to wait for the data to be sent.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
P6R::eInvalidArgOne of the agruments was NULL
P6R::eTimeoutThere was no data received within the specfied time period.
Any valid P6ERR.