Core Function SocketOpt

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> SocketOpt( <socket>, <option>, <value> ) </pre> === Description === Get or Set a setting on a <socket>. ==== option ==== The option to change. See Remarks. ==== value ...")
 
(Remarks)
Line 25: Line 25:
 
==== SendBufferSize ====
 
==== SendBufferSize ====
 
Value that specifies the size of the send buffer of the <socket>
 
Value that specifies the size of the send buffer of the <socket>
 +
 +
==== Blocking ====
 +
Gets or sets a value that indicates whether the <socket> is in blocking mode
 +
<pre>
 +
0 = False
 +
1 = True
 +
</pre>
  
 
=== Example ===
 
=== Example ===

Revision as of 01:49, 22 April 2012

SocketOpt( <socket>, <option>, <value> )

Contents

Description

Get or Set a setting on a <socket>.

option

The option to change. See Remarks.

value

Optional; The parameter (varies by option). See Remarks.

Note - If no value is given the CURRENT value of the given option will be returned

Return Value

Returns the value of the previous setting.

Remarks

SendBufferSize

Value that specifies the size of the send buffer of the <socket>

Blocking

Gets or sets a value that indicates whether the <socket> is in blocking mode

0 = False
1 = True

Example

SocketOpt($Socket, "SendBufferSize", 3);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox