aboutsummaryrefslogtreecommitdiff
path: root/doc/tcp.html
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-04-24 00:47:30 +0800
committerDiego Nehab <diego.nehab@gmail.com>2012-04-24 00:47:30 +0800
commitc2e29537f576a7082247091036c7957479d42b21 (patch)
treefb6a4da9566e8413d824522ca9a7fb94de049b61 /doc/tcp.html
parent1acf8188cd732de4fd5fcdc016eeab501c86a773 (diff)
downloadluasocket-c2e29537f576a7082247091036c7957479d42b21.tar.gz
luasocket-c2e29537f576a7082247091036c7957479d42b21.tar.bz2
luasocket-c2e29537f576a7082247091036c7957479d42b21.zip
Fixed getpeername/getsockname situation
- Added IPv6 support to getsockname - Simplified getpeername implementation - Added family to return of getsockname and getpeername and added modification to the manual to describe
Diffstat (limited to 'doc/tcp.html')
-rw-r--r--doc/tcp.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/tcp.html b/doc/tcp.html
index dc1a0b6..5f39d0e 100644
--- a/doc/tcp.html
+++ b/doc/tcp.html
@@ -225,8 +225,9 @@ Returns information about the remote side of a connected client object.
225</p> 225</p>
226 226
227<p class=return> 227<p class=return>
228Returns a string with the IP address of the peer, followed by the 228Returns a string with the IP address of the peer, the
229port number that peer is using for the connection. 229port number that peer is using for the connection,
230and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>").
230In case of error, the method returns <b><tt>nil</tt></b>. 231In case of error, the method returns <b><tt>nil</tt></b>.
231</p> 232</p>
232 233
@@ -247,8 +248,10 @@ Returns the local address information associated to the object.
247</p> 248</p>
248 249
249<p class=return> 250<p class=return>
250The method returns a string with local IP address and a number with 251The method returns a string with local IP address, a number with
251the port. In case of error, the method returns <b><tt>nil</tt></b>. 252the local port,
253and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>").
254In case of error, the method returns <b><tt>nil</tt></b>.
252</p> 255</p>
253 256
254<!-- getstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 257<!-- getstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->