thranur
ce278458c9
fix order of arguments in call to calloc ( #132 )
...
GCC 14 reports it as "error: ‘calloc’ sizes specified with ‘sizeof’ in
the earlier argument and not in the later argument
[-Werror=calloc-transposed-args]" and compilation fails otherwise.
2024-09-17 09:37:46 +03:00
Ozan Tezcan
19ad3a4478
Use GH actions for FreeBSD ( #131 )
...
* Use GH actions for FreeBSD
2024-04-05 13:42:40 +03:00
Sergi Vladykin
5037d2d36e
WINE test for cross-compiled .exe binaries on Ubuntu ( #129 )
...
WINE test for cross-compiled .exe binaries on Ubuntu
2024-01-04 20:51:23 +03:00
Sergi Vladykin
2fa40dd436
Zig CC cross-compilation support for Windows on Linux host. ( #128 )
...
Zig CC cross-compilation support for Windows on Linux host
2023-12-21 10:50:39 +03:00
Sergi Vladykin
c729344792
sc_sock: fix compiler warnings for Windows ( #127 )
2023-12-20 10:45:34 +03:00
Ozan Tezcan
e7134b79fd
Merge pull request #126 from ruanhao/master
...
Adjust example code for string.h
2023-10-08 09:54:00 +03:00
Hao Ruan
9c5f73df88
Adjust example code for string.h
2023-10-07 15:36:19 +08:00
Ozan Tezcan
a909fb0c14
Add riscv build ( #125 )
...
Add riscv build
2023-08-26 17:29:07 +03:00
Ozan Tezcan
41119003d4
sc_log: improvements ( #123 )
...
- Make sc_log_term() safe to call twice
- sc_log_set_file() parameters will be copied to an internal buffer.
- comment
2023-06-12 23:18:13 +03:00
Ozan Tezcan
6355173c54
Revert URI destroy function ( #122 )
2023-06-06 20:26:34 +03:00
Ozan Tezcan
8888716175
Documentation ( #121 )
2023-06-03 00:37:11 +03:00
Ozan Tezcan
94aa3c26ad
Fix weekly build ( #120 )
...
Fix weekly build
2023-05-29 01:49:03 +03:00
Ozan Tezcan
df74aade51
Add weekly build ( #119 )
2023-05-07 00:51:18 +03:00
Ozan Tezcan
d678dd2f0b
sc_sock: Add mask test ( #104 )
...
sc_sock: Add mask test
2023-05-01 22:22:48 +03:00
Ozan Tezcan
6970df2f4e
sc_map: add more types ( #116 )
...
sc_map: add more types
2023-04-28 23:51:09 +03:00
Ozan Tezcan
4cdefb3624
sc_map: add test ( #118 )
2023-04-22 03:29:39 +03:00
Ozan Tezcan
5f921ba367
sc_uri: add extra test ( #117 )
2023-04-22 01:56:31 +03:00
Ozan Tezcan
8df6817ff0
Fix warnings ( #115 )
...
Fix visual studio warnings
2023-04-22 00:41:11 +03:00
Ozan Tezcan
c2e8d56e76
Fix linter warnings ( #114 )
2023-04-21 00:43:26 +03:00
Ozan Tezcan
92b5455a2f
sc_crc: Fix CPU detection and input type ( #113 )
...
sc_crc: Fix CPU detection and input type
2023-04-11 04:22:52 +03:00
Ozan Tezcan
b62219bb61
sc_queue: doc fix ( #109 )
...
sc_queue: doc fix
2023-03-26 23:18:40 +03:00
Ozan Tezcan
aade0d7dc7
sc_array, sc_queue: add long long predefined type ( #108 )
2023-03-24 21:49:39 +03:00
Ozan Tezcan
03a12782a6
Merge pull request #107 from tezc/minor-fix
...
Minor fix
2023-03-19 22:38:28 +03:00
Ozan Tezcan
3bfb0505fa
Fix compile warnings
2023-03-19 21:54:21 +03:00
Ozan Tezcan
1bb8296eca
doc: Minor fixes
2023-03-19 21:53:57 +03:00
Ozan Tezcan
504f9ac09e
sc_list: doc fix ( #105 )
2023-03-08 13:59:29 +03:00
Ozan Tezcan
86a1574b79
sc_uri: use snprintf instead of sprintf ( #106 )
2023-03-08 13:59:11 +03:00
Ozan Tezcan
2aabcc422f
Delete LGTM
2023-01-15 15:09:07 +03:00
Ozan Tezcan
f0bb6d9813
Fix compiler warnings ( #102 )
2022-12-30 23:04:00 +03:00
Sergi Vladykin
8d01854232
sc_sock: multithreaded accept ( #100 )
...
Server socket registered in multiple sc_sock_poll instances and
multiple poller threads try to accept an incoming connection.
2022-12-07 11:14:48 +03:00
Ozan Tezcan
985a70824d
Fix clang-tidy warnings ( #101 )
...
Fix clang-tidy warnings
2022-12-07 00:55:43 +03:00
Sergi Vladykin
54984f40e1
sc_sock_poll thread safety ( #99 )
...
sc_sock_poll thread safety
2022-12-04 22:42:02 +03:00
Sergi Vladykin
611a97d9d9
Edge-Triggered mode for sc_sock ( #97 )
...
Added SC_SOCK_EDGE for edge-triggered mode
2022-09-11 04:39:54 +03:00
Ozan Tezcan
53d4a9158a
Fix compiler warnings ( #95 )
...
Fix compiler warnings
2022-08-20 18:56:21 +03:00
Ozan Tezcan
eb751789eb
sc_array: Include string.h for memmove() ( #93 )
...
sc_array: Include string.h for memmove()
This is just to silence compiler warning for mingw build
2022-08-13 13:43:01 +03:00
Sergi Vladykin
0b74cbcb2e
sc_sock: Linux to Windows cross-compilation ( #88 )
...
Fix to support build with MinGW-w64
2022-07-26 10:25:44 +03:00
Sergi Vladykin
a770ca3e5a
Function sc_sock_connect() picks wrong address faimily ( #87 )
...
Prefer same family addresses in sc_sock_connect()
Connecting in non-blocking mode `AF_INET6` socket with `sc_sock_connect("localhost")` where both IPv4 and IPv6 addresses are assigned to "localhost" but the server listens on IPv6 only.
It fails with `Connection refused` because `getaddrinfo` looks for any available address with `AF_UNSPEC` and wrongly picks IPv4. And since it is non-blocking mode it can not retry after the failure.
This change makes `sc_sock_connect()` give more respect to the configured socket family: the first iteration we try to connect to addresses with the matching family, the second iteration we try to connect to the rest.
Co-authored-by: Ozan Tezcan <ozantezcan@gmail.com>
2022-07-26 08:52:36 +03:00
Sergi Vladykin
871e848045
Fix error propagation ( #86 )
...
Fix error propagation for getsockopt
2022-07-25 10:20:46 +03:00
Ozan Tezcan
3085b274e3
Avoid possible slicing in timer ( #85 )
2022-07-16 03:29:01 +03:00
Ozan Tezcan
3b9ec1001e
Fix map iteration ( #84 )
...
Fix map loop with break statements
2022-07-16 03:11:47 +03:00
Sergi Vladykin
c87e906f9f
Fix warning for sc_sock on Windows ( #83 )
...
It should be `u_long` instead of `int` : https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-ioctlsocket
2022-06-22 09:34:50 +03:00
Ozan Tezcan
3a251b456e
Fix minor issues in sc_array ( #82 )
...
* Fix unnecessary memory allocation after sc_array_clear()
* Fix assert side effect in sc_array
2022-06-05 14:54:10 +03:00
Ozan Tezcan
020f6f740d
Fix build ( #79 )
...
Fix build
2022-02-05 00:11:52 +03:00
tezc
89f51f1d87
queue unsigned long long
2022-02-04 22:44:53 +03:00
tezc
9c9ab9d9c9
map doc
2022-02-04 22:43:15 +03:00
tezc
145f8fbfc0
CRC32c doc
2022-02-04 22:32:17 +03:00
tezc
a872396ef7
Condition doc
2022-02-04 22:24:02 +03:00
tezc
cb178289d5
Doc and add unsigned long long to array
2022-02-04 22:20:04 +03:00
tezc
70a432412b
Expand buf capacity to 2^64
2022-02-04 22:16:08 +03:00
Ozan Tezcan
ba1f378b95
Merge pull request #78 from tezc/doc-fix
...
Doc fix
2021-07-18 20:08:43 +03:00