moteus 3520727490 Change. socket:setfd() set fd to invalid value.
Change. socket:setfd return previews `fd` value.
Change. socket.tcp and socket.udp can create object based on `fd`.

Add. test setfd
```lua
  ---- server
  cli = assert(srv:accept())
  -- test if worker thread take ownership and clear `fd`
  if run_worker_thread(cli:getfd()) then cli:setfd() end
  cli:close()

  ---- worker
  -- wrap raw `fd` to socket object
  local sock = socket.tcp(..., "client")
  -- do work with sock object
```
2013-06-10 12:05:34 +04:00
..
2006-04-03 04:45:42 +00:00
2003-03-21 23:49:18 +00:00
2006-03-19 21:22:21 +00:00
2004-07-01 05:38:44 +00:00
2003-03-21 23:49:18 +00:00
2004-12-07 20:39:02 +00:00
2006-04-02 23:24:37 +00:00
2009-05-27 09:31:38 +00:00
2004-06-21 06:07:58 +00:00
2013-05-27 11:26:35 +04:00
2009-05-27 09:31:38 +00:00
2004-11-27 07:58:04 +00:00
2012-08-23 19:31:15 -03:00
2012-08-23 19:31:15 -03:00
2007-04-09 22:04:13 +00:00
2007-04-09 22:04:13 +00:00
2003-03-21 23:49:18 +00:00
2013-05-30 17:59:28 +08:00
2013-05-30 17:59:28 +08:00

This provides the  automated test scripts used to make  sure the library
is working properly.

The files provided are:

    testsrvr.lua            -- test server
    testclnt.lua            -- test client

To run these tests, just run lua on the server and then on the client. 

    hello.lua               -- run to verify if installation worked

Good luck,
Diego.