diff options
author | Diego Nehab <diego@impa.br> | 2012-08-23 19:31:15 -0300 |
---|---|---|
committer | Diego Nehab <diego@impa.br> | 2012-08-23 19:31:15 -0300 |
commit | 6368caeb5ab5f628b8021c8ebf4d6df436162aaf (patch) | |
tree | 2a2005f2e27ee81e8ced7e4fc84098728e106af0 /doc | |
parent | 03ba06f70c9ad5cdc9b49d816490fc28d6dbbdc5 (diff) | |
download | luasocket-6368caeb5ab5f628b8021c8ebf4d6df436162aaf.tar.gz luasocket-6368caeb5ab5f628b8021c8ebf4d6df436162aaf.tar.bz2 luasocket-6368caeb5ab5f628b8021c8ebf4d6df436162aaf.zip |
Fix udp:setpeername("*")
There seems to be a curious difference between MacOS and
Linux and I am not sure if this is documented. When you
break a "connection" on Mac OS, you only eliminate the peer
association, but the local address remains bound. On Linux,
breaking a "connection" eliminates the binding to the local
address. Have you guys ever come accross this?
Another irritating difference is that connect() returns the
error EAFNOSUPPORT on Mac OS. I am going to ignore all
errors when the reason for calling connect() is simply to
break the "connection".
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tcp.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/tcp.html b/doc/tcp.html index 5f39d0e..151a4c9 100644 --- a/doc/tcp.html +++ b/doc/tcp.html | |||
@@ -125,7 +125,9 @@ local host. | |||
125 | <tt>Port</tt> must be an integer number in the range [0..64K). | 125 | <tt>Port</tt> must be an integer number in the range [0..64K). |
126 | If <tt>address</tt> | 126 | If <tt>address</tt> |
127 | is '<tt>*</tt>', the system binds to all local interfaces | 127 | is '<tt>*</tt>', the system binds to all local interfaces |
128 | using the <tt>INADDR_ANY</tt> constant. If <tt>port</tt> is 0, the system automatically | 128 | using the <tt>INADDR_ANY</tt> constant or |
129 | <tt>IN6ADDR_ANY_INIT</tt>, according to the family. | ||
130 | If <tt>port</tt> is 0, the system automatically | ||
129 | chooses an ephemeral port. | 131 | chooses an ephemeral port. |
130 | </p> | 132 | </p> |
131 | 133 | ||