Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ITcpSocket::sendIoBuffer ( p6IIoBuffer pIoBuffer,
P6UINT32 pcBytesSent,
P6INTERVAL  timeout 
)
pure virtual

This method is used to send data contained in an p6IIoBuffer on a connected socket.

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

On success, the amount of data successfully sent will be "consumed" from the p6IIoBuffer. The start of the data in buffer will reflect the first unsent byte and the number of bytes used will be updated to reflect the remaining number of byte in the buffer.

Parameters
pIoBuffer[ in ] A pointer to a p6IIoBuffer interface containing the data to send.
pcBytesSent[ out ]The address of a P6UINT32 in which will be placed the number of bytes sent. The value return by the IoBuffer's getUsed() method is updated to reflect the remaining number of bytes in the buffer (which will be zero if the entire buffer was successfully sent).
timeout[ in ] The time as a P6INTERVAL 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 sent within the specfied time period.
Any valid P6ERR.