aboutsummaryrefslogtreecommitdiff
path: root/doc/tcp.html
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2012-02-27 13:26:23 -0800
committerSam Roberts <vieuxtech@gmail.com>2012-04-11 13:54:01 -0700
commit8bb542baaf30874479b83d37af2fea5fa84d0a8e (patch)
tree117d706140ee622565fa1c671c5469cb7f30fdac /doc/tcp.html
parent0716cb868e847bb9f66c659f8662d905ba012de8 (diff)
downloadluasocket-8bb542baaf30874479b83d37af2fea5fa84d0a8e.tar.gz
luasocket-8bb542baaf30874479b83d37af2fea5fa84d0a8e.tar.bz2
luasocket-8bb542baaf30874479b83d37af2fea5fa84d0a8e.zip
Support getoption method for tcp objects.
Diffstat (limited to 'doc/tcp.html')
-rw-r--r--doc/tcp.html35
1 files changed, 34 insertions, 1 deletions
diff --git a/doc/tcp.html b/doc/tcp.html
index 9583b1f..11a0428 100644
--- a/doc/tcp.html
+++ b/doc/tcp.html
@@ -396,7 +396,40 @@ disables the Nagle's algorithm for the connection.
396</ul> 396</ul>
397 397
398<p class=return> 398<p class=return>
399The method returns 1 in case of success, or <b><tt>nil</tt></b> otherwise. 399The method returns 1 in case of success, or <b><tt>nil</tt></b>
400followed by an error message otherwise.
401</p>
402
403<p class=note>
404Note: The descriptions above come from the man pages.
405</p>
406
407<!-- getoption ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
408
409<p class=name id=getoption>
410client:<b>getoption(</b>option)</b><br>
411server:<b>getoption(</b>option)</b>
412</p>
413
414<p class=description>
415Gets options for the TCP object.
416See <a href=#setoption><tt>setoption</tt></a> for description of the
417option names and values.
418</p>
419
420<p class=parameters>
421<tt>Option</tt> is a string with the option name.
422<ul>
423
424<li> '<tt>keepalive</tt>'
425<li> '<tt>linger</tt>'
426<li> '<tt>reuseaddr</tt>'
427<li> '<tt>tcp-nodelay</tt>'
428</ul>
429
430<p class=return>
431The method returns the option <tt>value</tt> in case of success, or
432<b><tt>nil</tt></b> followed by an error message otherwise.
400</p> 433</p>
401 434
402<p class=note> 435<p class=note>