aboutsummaryrefslogtreecommitdiff
path: root/doc/udp.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/udp.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/udp.html')
-rw-r--r--doc/udp.html18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/udp.html b/doc/udp.html
index 4a334b7..554fa31 100644
--- a/doc/udp.html
+++ b/doc/udp.html
@@ -140,8 +140,12 @@ Retrieves information about the peer
140associated with a connected UDP object. 140associated with a connected UDP object.
141</p> 141</p>
142 142
143<p class="return"> 143
144Returns the IP address and port number of the peer. 144<p class=return>
145Returns a string with the IP address of the peer, the
146port number that peer is using for the connection,
147and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>").
148In case of error, the method returns <b><tt>nil</tt></b>.
145</p> 149</p>
146 150
147<p class="note"> 151<p class="note">
@@ -159,10 +163,12 @@ unconnected:<b>getsockname()</b>
159Returns the local address information associated to the object. 163Returns the local address information associated to the object.
160</p> 164</p>
161 165
162<p class="return"> 166
163The method returns a string with local IP 167<p class=return>
164address and a number with the port. In case of error, the method 168The method returns a string with local IP address, a number with
165returns <b><tt>nil</tt></b>. 169the local port,
170and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>").
171In case of error, the method returns <b><tt>nil</tt></b>.
166</p> 172</p>
167 173
168<p class="note"> 174<p class="note">