aboutsummaryrefslogtreecommitdiff
path: root/NEW
diff options
context:
space:
mode:
Diffstat (limited to 'NEW')
-rw-r--r--NEW23
1 files changed, 15 insertions, 8 deletions
diff --git a/NEW b/NEW
index e5efc97..34eac97 100644
--- a/NEW
+++ b/NEW
@@ -1,17 +1,21 @@
1Major C code rewrite. Code is modular and extensible. Hopefully, next
2versions will include code for local domain sockets, file descriptors,
3pipes (on unix) and named pipes (on windows) as a bonus.
4
1All functions provided by the library are in the namespace "socket". 5All functions provided by the library are in the namespace "socket".
2Functions such as send/receive/timeout/close etc do not exist in the 6Functions such as send/receive/timeout/close etc do not exist anymore as
3namespace. They are now only available as methods of the appropriate 7stand alone functions. They are now only available as methods of the
4objects. 8appropriate objects.
5 9
6Object has been changed to become more uniform. First create an object for 10TCP has been changed to become more uniform. First create an object, then
7a given domain/family and protocol. Then connect or bind if needed. Then 11connect or bind if needed. Then use IO functions. The "socket.connect" and
8use IO functions. 12"socket.bind" functions are provided for simplicity, but they just call
13"socket.tcp" followed by the ":connect" or ":bind" methods.
9 14
10All functions return a non-nil value as first return value if successful. 15All functions return a non-nil value as first return value if successful.
11All functions return whatever could be retrieved followed by error message 16All functions return whatever could be retrieved followed by error message
12in case of error. The best way to check for errors is to check for the 17in case of error. The best way to check for errors is to check for the
13presence of an error message. 18presence of an error message. WARNING: The send function was affected.
14WARNING: The send function was affected.
15 19
16Better error messages and parameter checking. 20Better error messages and parameter checking.
17 21
@@ -20,3 +24,6 @@ setpeername with address "*".
20 24
21socket.sleep and socket.time are now part of the library and are 25socket.sleep and socket.time are now part of the library and are
22supported. 26supported.
27
28Socket options interface has been improved and TCP now also supports socket
29options.