diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2012-04-24 00:47:30 +0800 |
---|---|---|
committer | Diego Nehab <diego.nehab@gmail.com> | 2012-04-24 00:47:30 +0800 |
commit | c2e29537f576a7082247091036c7957479d42b21 (patch) | |
tree | fb6a4da9566e8413d824522ca9a7fb94de049b61 /doc/tcp.html | |
parent | 1acf8188cd732de4fd5fcdc016eeab501c86a773 (diff) | |
download | luasocket-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.html | 11 |
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> |
228 | Returns a string with the IP address of the peer, followed by the | 228 | Returns a string with the IP address of the peer, the |
229 | port number that peer is using for the connection. | 229 | port number that peer is using for the connection, |
230 | and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>"). | ||
230 | In case of error, the method returns <b><tt>nil</tt></b>. | 231 | In 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> |
250 | The method returns a string with local IP address and a number with | 251 | The method returns a string with local IP address, a number with |
251 | the port. In case of error, the method returns <b><tt>nil</tt></b>. | 252 | the local port, |
253 | and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>"). | ||
254 | In case of error, the method returns <b><tt>nil</tt></b>. | ||
252 | </p> | 255 | </p> |
253 | 256 | ||
254 | <!-- getstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 257 | <!-- getstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |