From c2e29537f576a7082247091036c7957479d42b21 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 24 Apr 2012 00:47:30 +0800 Subject: [PATCH] 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 --- TODO | 6 ++- doc/index.html | 3 +- doc/tcp.html | 11 +++-- doc/udp.html | 18 +++++--- src/inet.c | 117 +++++++++++++++++++++++++++++++------------------ src/inet.h | 6 +-- src/tcp.c | 4 +- src/udp.c | 4 +- 8 files changed, 107 insertions(+), 62 deletions(-) diff --git a/TODO b/TODO index ae290f2..2c68d67 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,4 @@ - document bind and connect behavior. -- getsockname should also support IPv6, no? - shouldn't we instead make the code compatible to Lua 5.2 without any compat stuff, and use a compatibility layer to make it work on 5.1? @@ -16,6 +15,11 @@ Done: +- added IPv6 support to getsockname +- simplified getpeername implementation +- added family to return of getsockname and getpeername + and added modification to the manual to describe + - connect and bind try all adresses returned by getaddrinfo - document headers.lua? - update copyright date everywhere? diff --git a/doc/index.html b/doc/index.html index 833c9a8..56c958f 100644 --- a/doc/index.html +++ b/doc/index.html @@ -134,7 +134,8 @@ and Lua 5.2 compatibility.
  • Added: IPv6 support;