Nikias Bassen
da770a7687
endianness.h: Default to little endian
2025-11-24 01:29:57 +01:00
Nikias Bassen
f614e0cb02
Add atexit call to (empty) deinit function to prevent stripping off initializer code
2025-11-22 13:46:29 +01:00
Nikias Bassen
0779631741
Add FUNDING
2025-09-08 00:14:41 +02:00
Nikias Bassen
d79b3231b9
[github-actions] Update build workflow to use windows-latest
2025-07-11 00:42:29 +02:00
Nikias Bassen
4d527c7ce2
socket: Use const void* instead of void* in signature of socket_send()
2025-06-29 01:56:21 +02:00
Nikias Bassen
aef2bf0f5b
Updated NEWS for release
1.3.2
2025-06-04 12:07:00 +02:00
Nikias Bassen
5825e9291b
Update soversion for release
2025-06-04 12:06:03 +02:00
Nikias Bassen
af3ab2e2e3
configure: [Windows] Add --with-winver option to specify minimum Windows version
...
This effectively defines WINVER and _WIN32_WINNT to the specified value
which will compile the code with that minimum supported Windows version
instead of the compiler/SDK default.
The passed value is expected to be in hex (like 0x0600) or decimal, so
passing --with-winver=0x0600 is a valid accepted input. See
https://learn.microsoft.com/cpp/porting/modifying-winver-and-win32-winnt
for the values of different Windows versions.
2025-06-04 11:52:59 +02:00
Nikias Bassen
fbf48dde19
Change order of includes to prevent compiler warning
...
Otherwise _WIN32_WINNT redefined warning may occur.
2025-06-04 11:42:26 +02:00
Nikias Bassen
050ff3bf8f
socket: [Windows] Use inet_ntop for >= Vista
2025-06-02 01:04:16 +02:00
Nikias Bassen
9409c9a09e
configure: Make sure the check for newer libplist works as expected
2025-05-17 22:08:07 +02:00
Nikias Bassen
db53b67ab7
utils: Remove 'plist helper' from header comment
2025-05-17 19:31:14 +02:00
Nikias Bassen
65986d1732
socket: [Windows] Use WSAAddressToStringA
...
This makes sure to always use the ANSI version of that function.
2025-05-17 19:30:31 +02:00
Nikias Bassen
cd095eb9b6
Use plist_new_unix_date API when available
2025-05-16 11:38:20 +02:00
Nikias Bassen
c915351cb3
socket: Use a backwards-compatible way to deal with , before __VA_ARGS__
2025-03-01 14:48:09 +01:00
Nikias Bassen
fe28a576b6
socket: Fix error output
2025-02-13 03:50:17 +01:00
Nikias Bassen
5c9f8d6bc1
socket: Allow setting debug level via environment variable
...
The value of SOCKET_DEBUG is read once during initialization
(library constructor) and is expected to be a numerical value.
2025-02-13 03:40:03 +01:00
Nikias Bassen
bf9d739380
socket: WIN32: Make sure errno is set in error conditions
2025-02-13 03:35:49 +01:00
Nikias Bassen
396c801594
socket: Update inline attributes for gcc/clang
2025-02-13 03:23:27 +01:00
Nikias Bassen
87f449204f
Fix compiler warning
2025-02-13 03:15:07 +01:00
Nikias Bassen
1abbdf9a0d
socket: WIN32: call WSAInit from library constructor
2025-02-13 03:08:19 +01:00
Nikias Bassen
eed04d575e
socket: Improve error message output/verbose logging
...
This will make sure to not print anything by default. Verbosity
needs to be at least 1 and can be set using socket_set_verbose().
2025-02-13 03:04:17 +01:00
Nikias Bassen
440dbbbf61
Add extern "C" guards to public headers
2024-12-27 01:55:34 +01:00
Nikias Bassen
1d9046fbd0
[github-actions] Bump dawidd6/action-download-artifact from 3 to 6
2024-12-02 06:02:53 +01:00
Nikias Bassen
4ed00e33a0
configure: Remove unused check
2024-12-02 06:02:12 +01:00
Nikias Bassen
fdb0cb81c0
[github-actions] Run build workflow on pull_request
2024-11-29 04:30:39 +01:00
Duncan Ogilvie
fee0ca03bf
Fix unrecognized \e escape sequence
2024-11-28 17:32:50 +01:00
Duncan Ogilvie
9bdf7fe983
Fix compilation on MSVC
2024-11-28 17:32:39 +01:00
Duncan Ogilvie
7d3cc96077
Switch to better initializer strategy
2024-11-26 18:27:44 +01:00
Duncan Ogilvie
2373fca9f9
Change WIN32 to _WIN32 to check if running on Windows
2024-11-26 18:27:20 +01:00
Sergey Fedorov
5140e4f2b9
socket.c: define AI_NUMERICSERV if undefined
2024-10-29 11:12:26 +08:00
Nikias Bassen
1085e461a5
socket/win32: Use calloc where applicable in getifaddrs implementation
...
This should prevent crashes like the one mentioned in #12 which are caused
by releasing an invalid pointer (due to uninitialized memory).
2024-10-21 12:33:06 +02:00
Nikias Bassen
69f98e35d6
sha1: Remove old commented-out code
2024-10-21 12:16:21 +02:00
Nikias Bassen
a4ec1cf9cc
Updated NEWS for release
1.3.1
2024-10-09 01:40:47 +02:00
Nikias Bassen
08cd963b7a
Updated README
2024-10-09 01:39:48 +02:00
Nikias Bassen
71b17749cd
Update soversion for release
2024-10-09 01:33:32 +02:00
Nikias Bassen
dd242cb910
socket: Remove greater-than check for scope_id since they might not be in order
...
Otherwise the scope_id matching might exit the loop before reaching the
interface with the actual corresponding scope_id.
This only affected socket_connect_addr().
2024-10-09 01:32:50 +02:00
Nikias Bassen
362f7848ac
Update soversion for release
1.3.0
2024-06-16 08:14:12 +02:00
Nikias Bassen
773f512382
Updated NEWS for release
2024-06-16 00:16:06 +02:00
Nikias Bassen
510ca0e0df
Add SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 functions to interface
2024-06-15 20:31:37 +02:00
Nikias Bassen
14c2e4b64b
socket: Create an IPv4 compatible IPv6 socket when NULL is passed to socket_create
2024-05-13 19:49:40 +02:00
Nikias Bassen
bbf0c65cde
Revert "Use updated libplist 2.5.0 API"
...
This reverts commit e61817ae57 .
2024-05-13 19:47:35 +02:00
Jerome Duval
1ee8d0ac23
socket: Haiku compilation fixes
...
- link against libnetwork
- get_primary_mac_address similar to FreeBSD
2024-05-04 13:41:45 +02:00
Nikias Bassen
e61817ae57
Use updated libplist 2.5.0 API
2024-05-04 13:34:20 +02:00
Nikias Bassen
0d586cd586
automake: Prevent dist or distcheck when uncommitted changes are present
2024-04-15 20:07:51 +02:00
Nikias Bassen
fde8946a39
Update NEWS for release
1.2.0
2024-03-23 02:36:30 +01:00
Nikias Bassen
98affa8a86
Update soversion for release
2024-03-23 02:35:40 +01:00
Nikias Bassen
bb5abbff82
Add helper code to deal with NSKeyedArchiver plist data
2024-03-23 01:47:50 +01:00
Nikias Bassen
3531163a1b
[github-actions] Updated build workflow to use v3 for download-artifact
2024-03-23 01:44:00 +01:00
Nikias Bassen
d9f069e634
[github-actions] Updated build workflow to use v4 for checkout and upload-artifact
2024-03-06 04:06:10 +01:00