Commit Graph

101 Commits

Author SHA1 Message Date
mpeterv
7c1df8a7cd Update HTML docs for try/protect 2016-02-21 12:10:25 +01:00
Diego Nehab
83880dbed7 When zero-timeout, only try first address in connect. 2015-12-03 12:56:18 -02:00
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
fd729b32a8 Added support for arbitrary datagram sizes.
The maximum size is still constant per UDP object, but the
size can be speficied at creation time.
2015-10-05 11:47:51 +08:00
Diego Nehab
4110e4125d Merge branch 'agnostic'
Seems safe to move to master.
2015-08-25 15:43:48 -03:00
Diego Nehab
77bba625d7 Fixes suggested by @Florob in #147. 2015-08-25 15:41:40 -03:00
Diego Nehab
b6a10ccb68 Merge pull request #84 from PixelToast/patch-2
the universe has only existed for 43.8 years
2015-08-24 16:31:42 -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
TsT
8a24ddaf49 white background
white background (successfully tested on https://tst2005.github.io/luasocket/ in https://tst2005.github.io/luasocket/reference.css )
2014-11-28 12:09:44 +01:00
PixelToast
534dfed859 the universe has only existed for 43.8 years 2013-11-07 19:13:36 -05:00
Diego Nehab
22cd5833fc Change link to github page. 2013-06-14 19:27:32 +08:00
Diego Nehab
ea812a755e Update NEW file and section 2013-06-14 19:12:44 +08:00
Diego Nehab
6e00ffd62f Changing from 2.1-rc1 to 3.0-rc1. 2013-06-11 19:10:03 +08:00
Diego Nehab
6368caeb5a Fix udp:setpeername("*")
There seems to be a curious difference between MacOS and
Linux and I am not sure if this is documented. When you
break a "connection" on Mac OS, you only eliminate the peer
association, but the local address remains bound. On Linux,
breaking a "connection" eliminates the binding to the local
address. Have you guys ever come accross this?

Another irritating difference is that connect() returns the
error EAFNOSUPPORT on Mac OS. I am going to ignore all
errors when the reason for calling connect() is simply to
break the "connection".
2012-08-23 19:31:15 -03:00
Diego Nehab
03ba06f70c Add new bug fix comment. 2012-08-01 03:34:06 -03:00
Sam Roberts
156669c28b socket.connect now implemented in the C core
This avoid socket.lua duplicating the iteration over the results
of getaddrinfo(). Some problems with the C implementation not
initializing sockets or the luasocket family have also been fixed,
and error reporting made more robust.
2012-05-10 14:14:22 -07:00
Diego Nehab
c2e29537f5 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
2012-04-24 00:47:30 +08:00
Diego Nehab
f960b3872a Making progress toward a release
Documented headers.lua
Update copyright date everywhere
Remove RCSID from files
Move version back to 2.1 rather than 2.1.1
Fixed url package to support ipv6 hosts
Changed "domain" to "family" in tcp and udp structures
Implemented getfamily methods
2012-04-23 00:18:45 +08:00
Diego Nehab
f37e026026 First stab at documenation
Update Lua and Luasocket version in samples and in documentation
Documented ipv5_v6only default option being set
Documented tcp6 and udp6
Documented dns.getaddrinfo
Documented zero-sized datagram change?
Documented getoption
2012-04-17 01:15:26 +08:00
Sam Roberts
4b671f4551 Merge branch 'git-sam' into diego-sam-mwild-integration
Conflicts in options.c were just due to independent small functions
being close to each other.

unix.c in mwild was broken, it wasn't using LUASOCKET_API.

serial.c needed luaL_reg renamed, and to use LUASOCKET_API.

makefile didn't respect standard DESTDIR and prefix makefile
variables, and didn't allow LUAV variable to select lua version to build
against.

I've tested the top-level install-both target builds and installs
against both lua5.1 and lua5.2, but not done further testing.

Conflicts:
	README
	config
	gem/ltn012.tex
	makefile
	src/makefile
	src/options.c
	src/options.h
	src/tcp.c
	src/usocket.c
2012-04-11 14:18:20 -07:00
Sam Roberts
8bb542baaf Support getoption method for tcp objects. 2012-04-11 13:54:01 -07:00
Sam Roberts
db47a91d40 Fix links to home.html, they should be to index.html.
home.html doesn't exist, index.html does.
2012-04-11 13:45:59 -07:00
Sam Roberts
12bde801f6 Document dirty, getfd, and setfd for select and tcp. 2012-04-11 13:45:59 -07:00
Sam Roberts
3a0fd4744d Reference index was missing documented APIs, and only partially alphabetized. 2012-04-11 13:45:59 -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
d1a72435d5 New release. 2007-10-13 23:55:20 +00:00
Diego Nehab
e394956cde Global variable references. 2007-07-11 19:25:47 +00:00
Diego Nehab
185b6d806c Typo. 2007-06-15 06:38:29 +00:00
Diego Nehab
1c487e4be8 Almost ready to release. 2007-06-15 06:28:56 +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
d86af2f680 Tidy. 2006-04-20 04:32:06 +00:00
Diego Nehab
575113fe77 Spell checked and updated modification date. 2006-04-20 04:27:13 +00:00
Diego Nehab
75f51d5bc7 Almost ready to release 2.0.1 2006-04-20 04:16:23 +00:00
Diego Nehab
44c7f0f47b Mentions that closed sockets are ignored by select. 2006-04-14 02:04:38 +00:00
Diego Nehab
e8650bbf16 http.request was using old host header during redirects. 2006-04-13 07:00:24 +00:00
Diego Nehab
11282d17c8 Almost done 2.0.1. 2006-04-03 04:45:42 +00:00
Diego Nehab
00e74c304c Bug in footer. 2005-12-01 21:56:12 +00:00
Diego Nehab
96da86a81f Simplified documentation of send(). 2005-11-24 20:29:28 +00:00
Diego Nehab
7dace4af7e Changed LIB/SHARE to CDIR/LDIR. 2005-11-22 20:51:28 +00:00
Diego Nehab
d55a5826e8 Few tweaks in installation, some missing files, etc. 2005-11-22 08:33:29 +00:00
Diego Nehab
a2b780bf7a Spell checking on the manuals.
David's changes to lp.lua.
2005-11-21 07:04:44 +00:00
Diego Nehab
5e09779c7f In pre release mode! 2005-11-20 08:56:19 +00:00
Diego Nehab
087b4f865d Lua Workshop presentation. 2005-11-02 02:53:16 +00:00
Diego Nehab
72eceedc62 Bugs sent by David. 2005-10-05 03:16:17 +00:00
Diego Nehab
a32c6d9140 Almost ready to release. 2005-09-29 06:11:42 +00:00
Diego Nehab
773e35ced3 Compiled on Windows. Fixed a bunch of stuff. Almost ready to release.
Implemented a nice dispatcher! Non-blocking check-links and forward server
use the dispatcher.
2005-08-23 05:53:14 +00:00
Diego Nehab
0c3cdd5ef2 Final push for release... 2005-08-12 05:56:32 +00:00
Diego Nehab
37f7af4b9f Added check-links-nb.lua that check links in a non-blocking way. 2005-06-20 04:51:55 +00:00
Diego Nehab
65c35845c5 Working on the manual. 2005-06-14 04:29:23 +00:00