count = SendData(id, data$)
OnConnect
event handler which you can set up by
calling InstallEventHandler().
The second argument is a string containing the data that you want to
send to the recipient. Please note that although this argument is a
string, it is not limited to text only. You can also send raw data with
this function because Hollywood strings can handle character control
codes as well as the special NULL
character without problems.
Upon return, SendData()
will return the number of bytes that it has
successfully transmitted to the recipient. This can be less than the
number of bytes in data$
.