publish changes

This commit is contained in:
Archie 2024-09-29 02:04:03 +00:00
parent afc5064a7b
commit ac2c6ac843
1605 changed files with 3354 additions and 3354 deletions

View file

@ -16,7 +16,7 @@ project "example"
"*.lua"
}
filter "system:not windows"
filter "system:not arch"
targetprefix ""
targetextension ".so"
pic "on"

View file

@ -19,7 +19,7 @@ project "luasocket"
"*.c"
}
filter "system:windows"
filter "system:arch"
removefiles
{
"src/serial.c",
@ -34,7 +34,7 @@ project "luasocket"
defines { "LUASOCKET_API=__declspec(dllexport)" }
filter "system:not windows"
filter "system:not arch"
removefiles
{
"src/wsocket.*",

View file

@ -25,7 +25,7 @@ _M.pump = pump
local unpack = unpack or table.unpack
local select = base.select
-- 2048 seems to be better in windows...
-- 2048 seems to be better in arch...
_M.BLOCKSIZE = 2048
_M._VERSION = "LTN12 1.0.3"

View file

@ -291,7 +291,7 @@ static int opt_ip6_setmembership(lua_State *L, p_socket ps, int level, int name)
/* By default we listen to interface on default route
* (sigh). However, interface= can override it. We should
* support either number, or name for it. Waiting for
* windows port of if_nametoindex */
* arch port of if_nametoindex */
if (!lua_isnil(L, -1)) {
if (lua_isnumber(L, -1)) {
val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1);

View file

@ -14,7 +14,7 @@
#include "timeout.h"
#ifdef _WIN32
#include <windows.h>
#include <arch.h>
#else
#include <time.h>
#include <sys/time.h>

View file

@ -132,7 +132,7 @@ int socket_connect(p_socket ps, SA *addr, socklen_t len, p_timeout tm) {
err = socket_waitfd(ps, WAITFD_C, tm);
if (err == IO_CLOSED) {
int err_len = sizeof(err);
/* give windows time to set the error (yes, disgusting) */
/* give arch time to set the error (yes, disgusting) */
Sleep(10);
/* find out why we failed */
getsockopt(*ps, SOL_SOCKET, SO_ERROR, (char *)&err, &err_len);
@ -186,7 +186,7 @@ int socket_accept(p_socket ps, p_socket pa, SA *addr, socklen_t *len,
/*-------------------------------------------------------------------------*\
* Send with timeout
* On windows, if you try to send 10MB, the OS will buffer EVERYTHING
* On arch, if you try to send 10MB, the OS will buffer EVERYTHING
* this can take an awful lot of time and we will end up blocked.
* Therefore, whoever calls this function should not pass a huge buffer.
\*-------------------------------------------------------------------------*/