diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-30 18:53:10 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-30 18:53:10 +0000 |
| commit | a581d2333be87796e2758806d38880e3e2be8a78 (patch) | |
| tree | b790421957baf22e41d962a31ca92aed2e6201ae /NEW | |
| parent | 167727be3cefb3f45a26b0b1d96dc94a900a84b4 (diff) | |
| download | luasocket-a581d2333be87796e2758806d38880e3e2be8a78.tar.gz luasocket-a581d2333be87796e2758806d38880e3e2be8a78.tar.bz2 luasocket-a581d2333be87796e2758806d38880e3e2be8a78.zip | |
Releasing 2.0 alpha!!!
Diffstat (limited to 'NEW')
| -rw-r--r-- | NEW | 23 |
1 files changed, 15 insertions, 8 deletions
| @@ -1,17 +1,21 @@ | |||
| 1 | Major C code rewrite. Code is modular and extensible. Hopefully, next | ||
| 2 | versions will include code for local domain sockets, file descriptors, | ||
| 3 | pipes (on unix) and named pipes (on windows) as a bonus. | ||
| 4 | |||
| 1 | All functions provided by the library are in the namespace "socket". | 5 | All functions provided by the library are in the namespace "socket". |
| 2 | Functions such as send/receive/timeout/close etc do not exist in the | 6 | Functions such as send/receive/timeout/close etc do not exist anymore as |
| 3 | namespace. They are now only available as methods of the appropriate | 7 | stand alone functions. They are now only available as methods of the |
| 4 | objects. | 8 | appropriate objects. |
| 5 | 9 | ||
| 6 | Object has been changed to become more uniform. First create an object for | 10 | TCP has been changed to become more uniform. First create an object, then |
| 7 | a given domain/family and protocol. Then connect or bind if needed. Then | 11 | connect or bind if needed. Then use IO functions. The "socket.connect" and |
| 8 | use 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 | ||
| 10 | All functions return a non-nil value as first return value if successful. | 15 | All functions return a non-nil value as first return value if successful. |
| 11 | All functions return whatever could be retrieved followed by error message | 16 | All functions return whatever could be retrieved followed by error message |
| 12 | in case of error. The best way to check for errors is to check for the | 17 | in case of error. The best way to check for errors is to check for the |
| 13 | presence of an error message. | 18 | presence of an error message. WARNING: The send function was affected. |
| 14 | WARNING: The send function was affected. | ||
| 15 | 19 | ||
| 16 | Better error messages and parameter checking. | 20 | Better error messages and parameter checking. |
| 17 | 21 | ||
| @@ -20,3 +24,6 @@ setpeername with address "*". | |||
| 20 | 24 | ||
| 21 | socket.sleep and socket.time are now part of the library and are | 25 | socket.sleep and socket.time are now part of the library and are |
| 22 | supported. | 26 | supported. |
| 27 | |||
| 28 | Socket options interface has been improved and TCP now also supports socket | ||
| 29 | options. | ||
