Commit Graph

27 Commits (master)

Author SHA1 Message Date
E. Westbrook 5d07d9b227 unix: include reorg 2019-03-10 00:04:20 -07:00
E. Westbrook 16b0026e27 unix.c: use LUASOCKET_API 2019-02-25 15:56:28 -07:00
Courtney Bane ea0064625b Add backwards compatibility wrappers for socket.unix
Add backwards compatibility aliases "tcp" and "udp" for the recently renamed
"stream" and "dgram" functions, as well as a wrapper function and metatable
setup so that socket.unix() calls socket.unix.stream().
2017-01-25 18:04:35 -06:00
enginix 3a33c37b9c rename unix.tcp to unix.stream, unix.udp to unix.dgram 2016-12-25 23:33:10 +08:00
enginix aa1b8cc9bc support datagram unix domain sockets 2016-06-24 21:33:19 +08:00
Diego Nehab e75444ccd1 New compat.h module implements luaL_setfuncs.
Makes initialization code simpler everywhere.
2015-08-21 15:39:34 -03:00
Diego Nehab a233e27865 Leaving if in src/ but out of build for now. 2013-05-30 16:20:34 +08:00
Diego Nehab 79e6c4915d Export global only if LUA_COMPAT_MODULE defined. 2013-05-29 16:56:56 +08:00
Sam Roberts e86eac96fa :shutdown() errors on all invalid argument strings
It used to error only on invalid argument strings that started with 's',
'r', or 'b'.
2012-04-26 16:50:27 -07: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
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
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 2778766d67 Preliminary IPv6 support for v2.1 2012-04-11 13:25:11 -07:00
Diego Nehab bce60be30f Decent makefiles! 2009-05-27 09:31:38 +00:00
Diego Nehab 6248b915cb Fixing bugs... 2006-03-13 07:16:39 +00:00
Diego Nehab 64d7b02490 Returning a function. 2005-10-05 03:17:29 +00:00
Diego Nehab a32c6d9140 Almost ready to release. 2005-09-29 06:11:42 +00:00
Diego Nehab 8d4e240f6a Forward server working on Mac OS X... 2005-02-08 10:01:01 +00:00
Diego Nehab cd994f306a Gonna try my luck on windows... 2004-07-26 04:03:55 +00:00
Diego Nehab 197aef23ce Compiles with g++. 2004-07-01 05:35:35 +00:00
Diego Nehab a7d5362caf Fixed unix domain sockets. 2004-07-01 05:26:59 +00:00
Diego Nehab 1ce47ebe39 Added support for unix stream sockets. 2004-06-22 16:12:53 +00:00
Diego Nehab 0f6c8d50a9 Porting to LUA 5.0 final 2003-05-25 01:54:13 +00:00
Diego Nehab f18d1b7cd0 Closer to release... 2003-03-28 21:08:50 +00:00
Diego Nehab cf4d923d70 Ported to Win32! 2003-03-21 01:07:23 +00:00
Diego Nehab d7e80592a6 Already compiling and running for Lua 5.0 (alpha) 2002-12-02 23:34:41 +00:00
Diego Nehab cbffc42f29 Initial revision 2002-07-08 20:14:09 +00:00