Commit Graph

29 Commits (master)

Author SHA1 Message Date
E. Westbrook 21514304be wrap visibility pragmas in #ifndef _WIN32 2019-03-10 00:04:20 -07:00
E. Westbrook 611cdd19cc inet: pragma visibility 2019-03-10 00:03:04 -07: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
unknown 26704061a4 Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
Diego Nehab 427220c7b1 Merge tryconnect6 into inet_tryconnect. 2013-05-26 21:26:26 +08:00
Paul Kulchenko 5a58786a39 Added inet_pton/inet_ntop for MinGW on Windows; compiles with Lua52. 2013-04-07 12:39:56 -07:00
Diego Nehab 618ce43ee3 Fix socket_accept usage to depend on family. 2012-12-11 16:35:27 -02: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
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
Florian Zeitz 594f826aa1 Add support for connecting to IPv6 hosts 2012-04-11 13:33:34 -07:00
Florian Zeitz 923eef1929 Rework binding IPv6 sockets by harmonizing it with the IPv4 variant 2012-04-11 13:33:34 -07:00
Diego Nehab bce60be30f Decent makefiles! 2009-05-27 09:31:38 +00:00
Diego Nehab f4dadea763 Before compiling on Windows. 2005-10-07 04:40:59 +00:00
Diego Nehab a32c6d9140 Almost ready to release. 2005-09-29 06:11:42 +00:00
Diego Nehab 80b7acea2e Compiled and tested on Windows... 2004-06-17 00:18:48 +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 0c9f420a35 New accept/connect code.
Better error checking.
Better tests.
__tostring implemented.
2004-01-24 00:18:19 +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 c8d58798f0 Trying to get connect-with-timeout to work. Darwin works... 2004-01-18 00:04:20 +00:00
Diego Nehab 02ef4e7daa Trying to get rid of EINTR problems... 2004-01-17 08:02:04 +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 71f6bb60bf Finished implementation of LuaSocket 2.0 alpha on Linux.
Some testing still needed.
2003-06-26 18:47:49 +00:00
Diego Nehab f330540576 Compiles and runs on linux and windows, using DLLs! 2003-06-11 01:42:18 +00:00
Diego Nehab 58bdb658aa Select re-implemented in a nicer way.
Few changes in internal class and group registration.
Lua modules are compiled and built into library.
Dynamic library tested in Linux and Mac OS X.
2003-06-09 18:23:40 +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 88026bef8a Initial revision 2002-07-03 19:06:54 +00:00