Send (Socket function)
Jump to navigation
Jump to search
Send a string over this socket (Socket class)
This callable method sends a string over a Janus Sockets connection.
The Send function has an effect similar to $Sock_Send.
Syntax
[%number =] socket:Send( string, [[Options=] string])
Syntax terms
%number | This is a numeric variable to contain the returned indicator of success of the function.
The return value is either of these:
| ||||||||
---|---|---|---|---|---|---|---|---|---|
socket | A variable or an expression that is a reference to a Socket object. | ||||||||
string | The string to send. | ||||||||
Options | This optional argument is an option string that may contain any
of the following:
|
Usage notes
- If you need to send line-end delimited information, use the SendWithLineEnd method.