$Sock Send: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
mNo edit summary |
||
Line 2: | Line 2: | ||
<span class="pageSubtitle">Send string</span> | <span class="pageSubtitle">Send string</span> | ||
<p class="warn"><b>Note: </b>Most Sirius $functions have been deprecated in favor of Object Oriented | <p class="warn"><b>Note: </b>Most Sirius $functions have been deprecated in favor of Object Oriented | ||
methods. | methods. The OO equivalent for <var>$Sock_Send</var> is the <var>[[Send (Socket function)|Send]]</var> method.</p> | ||
<var>$Sock_Send</var> sends a string over a <var class="product">Janus Sockets</var> connection. | <var>$Sock_Send</var> sends a string over a <var class="product">Janus Sockets</var> connection. |
Revision as of 21:52, 23 July 2013
Send string
Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for $Sock_Send is the Send method.
$Sock_Send sends a string over a Janus Sockets connection.
It is also a callable function.
Syntax
[%rc =] $Sock_Send(sockNum, string, [opts])
Syntax terms
%rc | A numeric value that is a numeric error code (described further below), or if the operation could not be performed as requested, a 0 value. For more details, see "$Sock_RecvPrs return values". | ||||||||
---|---|---|---|---|---|---|---|---|---|
sockNum | The socket number. | ||||||||
string | The string to send. | ||||||||
opts | This optional argument is an option string, which can contain any of the following:
|
$Sock_Send return codes
- 0, if the function completes successfully.
- -1, if the socket is not open and ONRESET CONTINUE is in effect for the socket.
If you need to send line-end delimited information, use $Sock_SendLn.