.setdata Method

Function:

For the selected socket (selection is made through sock.num), adds the data passed in the txdata argument to the contents of the TX buffer.

Syntax:

sock.setdata(byref txdata as string)

Returns:

---

See Also:

---


Part

Description

txdata

The data to send; this data will be added to the contents of the TX buffer.


Details

If the buffer doesn't have enough space to accommodate the data being added, then this data will be truncated. Newly saved data is not sent out immediately. This only happens after the sock.send method is used to commit the data. This allows your application to prepare large amounts of data before sending it out.

The total amount of newly added (uncommitted) data in the buffer can be checked through the sock.newtxlen read-only property.


.setdata Method

Details