Diego Nehab
be67f63f4e
Changed buffer-per-socket to buffer-per-operation.
...
This is a difficult tradeoff to measure. I think large
datagrams won't be used very frequently. So it is better to
not lock a large buffer to each socket object and instead
allocate and deallocate for each operation receiving a
datagram larger than UDP_DATAGRAMSIZE.
2015-10-06 11:33:50 +08:00
Diego Nehab
77bba625d7
Fixes suggested by @Florob in #147 .
2015-08-25 15:41:40 -03:00
Diego Nehab
96965b179c
New agnostic IPv4 IPv6 functions.
...
Also dealing with EPROTOTYPE Yosemite seems to be throwing
at us for no reason.
2015-08-22 19:52:01 -03:00
Diego Nehab
e75444ccd1
New compat.h module implements luaL_setfuncs.
...
Makes initialization code simpler everywhere.
2015-08-21 15:39:34 -03:00
moteus
bd51d8c1a5
Fix. Optional IPv6 test
2013-05-27 11:26:35 +04:00
Diego Nehab
04be61f88d
Test server exits gracefully at command of test client
2012-05-01 16:21:06 +08:00
Florian Zeitz
6de0aa54fd
Update method list in tests
2012-04-29 21:03:28 +02:00
Florian Zeitz
46736a3355
Test method registration for IPv6 sockets
2012-04-29 20:44:15 +02:00
Liam Devine
9a58252528
change localhost to loopback ip to prevent error on my mac box????
2012-04-11 13:33:34 -07:00
Liam Devine
e15ed19db6
Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing.
2012-04-11 13:33:34 -07:00
Diego Nehab
3a8ba90dfb
Saving before big changes to support IPv6.
2011-05-25 20:57:22 +00:00
Diego Nehab
bce60be30f
Decent makefiles!
2009-05-27 09:31:38 +00:00
Diego Nehab
c893c7abfb
Removed os.exit from test.
2007-06-11 23:52:48 +00:00
Diego Nehab
3cd10f5ab6
Crashy bug fixed in recvraw.
...
Also fixed returns on closed socket.
2007-06-11 23:44:54 +00:00
Diego Nehab
be2e467929
Couple bug fixes.
2007-03-12 04:08:40 +00:00
Diego Nehab
a32c6d9140
Almost ready to release.
2005-09-29 06:11:42 +00:00
Diego Nehab
65c35845c5
Working on the manual.
2005-06-14 04:29:23 +00:00
Diego Nehab
8d4e240f6a
Forward server working on Mac OS X...
2005-02-08 10:01:01 +00:00
Diego Nehab
7c97e8e40a
Almost ready for beta3
2004-11-27 07:58:04 +00:00
Diego Nehab
911e8d7e7f
Beta2 is out! Total timeout works on Windows.
2004-07-26 05:17:37 +00:00
Diego Nehab
c8b402e004
Changed send function.
2004-07-18 22:56:14 +00:00
Diego Nehab
e4e2223cff
Fixed a bunch of stuff. Added mike's patches.
2004-07-16 06:48:48 +00:00
Diego Nehab
4583a6304d
Works fine with the new linking in Linux.
2004-07-02 20:16:15 +00:00
Diego Nehab
b2b7e9cef1
tiny bug in test.
2004-07-02 18:58:23 +00:00
Diego Nehab
b1a4ad2b19
Compiles and runs on windows.
2004-07-02 18:44:05 +00:00
Diego Nehab
63807d6476
Added getstats.
2004-07-01 06:09:29 +00:00
Diego Nehab
7115c12fbc
Moving on to beta2.
2004-07-01 03:32:09 +00:00
Diego Nehab
bce1cb30d8
More adjustments/bugfixes.
2004-06-21 06:07:58 +00:00
Diego Nehab
f7579db9e8
Fixing bugs...
2004-06-20 22:19:54 +00:00
Diego Nehab
07dda08c5d
Changed the return of the send function...
2004-06-17 23:08:56 +00:00
Diego Nehab
80b7acea2e
Compiled and tested on Windows...
2004-06-17 00:18:48 +00:00
Diego Nehab
680473dd32
Runs on Linux.
2004-06-15 20:05:23 +00:00
Diego Nehab
58096449c6
Manual is almost done. HTTP is missing.
...
Implemented new distribution scheme.
Select is now purely C.
HTTP reimplemented seems faster dunno why.
LTN12 functions that coroutines fail gracefully.
2004-06-15 06:24:00 +00:00
Diego Nehab
c23240726e
Changed require"luasocket" to require"socket".
2004-05-28 20:40:13 +00:00
Diego Nehab
84f03fda7c
Previous bug fix caused a new bug. :o/
2004-05-28 07:38:12 +00:00
Diego Nehab
c98dc99199
Bug feioso no UDP e possivelmente no TCP também.
2004-05-28 07:24:43 +00:00
Diego Nehab
4919a83d22
Changed receive function. Now uniform with all other functions. Returns nil
...
on error, return partial result in the end.
http.lua rewritten.
2004-03-21 07:50:15 +00:00
Diego Nehab
0b2542d1a6
Worked on the manual.
...
Implemented stuffing (needs test)
Added cddb and qp examples.
2004-02-04 14:29:11 +00:00
Diego Nehab
f67864f86c
DNS lookup was taking too long and fucking up the connect tests.
2004-01-24 03:21:33 +00:00
Diego Nehab
62a4c505e4
Working on the manual...
...
Making better tests for error messages.
Changed a few names.
Moved gethostname to inet.c.
2004-01-24 02:47:24 +00:00
Diego Nehab
0c9f420a35
New accept/connect code.
...
Better error checking.
Better tests.
__tostring implemented.
2004-01-24 00:18:19 +00:00
Diego Nehab
42e0e74487
Adjusted wsocket to match usocket. Adjusted windows projects.
2004-01-21 20:16:48 +00:00
Diego Nehab
195069cf5f
Fixed functions that return messages in ?socket.c.
...
Moved complexity of connect and accept there.
Created a new options.c module to take care of options.
Auxiliar.c is now cleaner.
2004-01-21 18:40:52 +00:00
Diego Nehab
fbb42b80cb
Seems to be working on windows and linux.
2004-01-19 16:18:31 +00:00
Diego Nehab
50ce143725
Have to figure out how to test timeout on connect... kind of hard.
2004-01-18 06:41:43 +00:00
Diego Nehab
87e8737218
Fixed bug in accept, added tests for it and for connect with timeout.
2004-01-18 05:35:56 +00:00
Diego Nehab
c8d58798f0
Trying to get connect-with-timeout to work. Darwin works...
2004-01-18 00:04:20 +00:00
Diego Nehab
076451c753
Tested in windows. Still needs more testing, but progress has been made.
2004-01-17 00:17:46 +00:00
Diego Nehab
89f3ecf782
http.lua updated. still needs proxy support.
...
code.lua updated. looks neat.
2004-01-16 07:06:31 +00:00
Diego Nehab
c51d4acf1c
Adjusted a few inconsistencies with the manual.
2003-08-16 00:06:04 +00:00