- 01 May, 2022 1 commit
-
-
Rob Swindell authored
Tried using this function in a new project and didn't work. My guess: it wasn't tested. <looks at Deuce>
-
- 11 Feb, 2022 1 commit
-
-
Deucе authored
-
- 22 May, 2021 1 commit
-
-
Deucе authored
-
- 10 Apr, 2021 2 commits
-
-
Deucе authored
-
- 05 Apr, 2021 1 commit
-
-
Deucе authored
Specifically, have errors mean the fd is "ready". Also, fix some extra revent clearing and a spy socket issue while we're looking at this code. Should fix issues with CGI scripts that close stdin/stdout but do not terminate, and maybe deal with some other corner cases at the same time.
-
- 02 Apr, 2021 1 commit
-
-
Deucе authored
This appears to work and the event handler *should* work on other event types already. Note, this is *nix-only due to the use of poll(). select() will need to be used for Windows to keep XP compatability.
-
- 31 Mar, 2021 1 commit
-
-
Deucе authored
Rather than depending on _WIN32 which is silly, make it clear what exactly is being done and why. Note that the spy socket stuff and some external stuff on *nix have had the select() implementation removed. To support using select() on !Win32 will require de-refactoring that's not really worth doing. Instead, just use #error and reference the commit where the old code can be found.
-
- 23 Mar, 2021 1 commit
-
-
Deucе authored
-
- 21 Mar, 2021 4 commits
-
-
Deucе authored
Not all implementations set POLLHUP when a TCP socket is half-closed.
-
Deucе authored
Was returning disconnected when it wasn't at times.
-
Deucе authored
This won't impact Synchronet as it has a separate signal handling thread, but we still need to behave properly for processes that don't. I'm also saying that ENOMEM does not indicate a disconnection, though it may be better to pretend it was disconnected...
-
Deucе authored
-
- 20 Mar, 2021 1 commit
-
-
Deucе authored
socket_readable() returns TRUE if recv() will not block if called on the specified socket. socket_writable() returns TRUE if send() will not block if called on the specified socket. socket_recvdone() returns TRUE if all data has been recv()ed an the socket is closed. "will not block" includes "will return an error". This matches the three main use-cases for select() of a single socket in Synchronet. Use them in the SyncTERM RLogin stuff so they can be tested easily.
-
- 22 Dec, 2020 1 commit
-
-
Rob Swindell authored
A couple of stragglers here, the isalnum() call caught by an MSVC exception.
-
- 06 Dec, 2020 1 commit
-
-
Rob Swindell authored
xp_inet_pton() now sets the socket errno value, doing as instructed by the TODO.
-
- 05 Dec, 2020 1 commit
-
-
Rob Swindell authored
Rename the portable inet_pton() to xp_inet_pton() and define a wrapper macro (for all Widows builds) to use it instead of inet_pton() as not all supported Windows systems (e.g. WinXP) have an inet_pton() implementation. This allows the HAProxy mod to be re-enabled by default without preventing executing on WinXP.
-
- 21 Nov, 2020 5 commits
- 27 Sep, 2020 1 commit
-
-
Rob Swindell authored
Socket error descriptions on Windows can be quite long (e.g. > 128 chars) and include punctuation, so include at the end of logged socket error messages. If FormatMessage() fails on Windows (in socket_strerror()) return the GetLastError() value in the error description.
-
- 16 Aug, 2020 1 commit
-
-
Rob Swindell authored
-
- 09 Aug, 2020 1 commit
-
-
rswindell authored
-
- 08 Aug, 2020 4 commits
- 25 May, 2020 1 commit
-
-
rswindell authored
that support large file offsets (e.g. 64-bit Linux). Considered returning ssize_t (like sendfile does), but opted for off_t. Could be convinced otherwise.
-
- 20 Apr, 2020 1 commit
-
-
rswindell authored
-
- 19 Apr, 2020 2 commits
- 21 May, 2016 1 commit
-
-
rswindell authored
address (family and address value, ignoring ports and other fields).
-
- 26 Aug, 2015 1 commit
-
-
rswindell authored
failed login attempt client IP addresses on Windows.
-
- 22 Aug, 2015 1 commit
-
-
deuce authored
-
- 20 Aug, 2015 1 commit
-
-
deuce authored
(only impacts active FTP transfers via IPv6).
-
- 24 Apr, 2014 2 commits
- 07 Mar, 2014 1 commit
-
-
deuce authored
Win32 make connect() failure an exceptional condition.
-