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

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

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

Parameters
pBuffer[ in ]A pointer to a buffer containing the data to send.
cBuffer[ in ] The number of bytes in pBuffer to send.
pcBytesSent[ out ] The address of a P6UINT32 in which will be placed the number of bytes sent.
timeout[ in ] The time as a P6INTERVAL to wait for the data to be sent.
Returns
SuccesseOk 
FailureeNotInitializedThe 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.