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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
P6R::eInvalidArg | One of the agruments was NULL |
P6R::eTimeout | There was no data sent within the specfied time period. |
Any valid P6ERR. | |