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
tezc
781813da4c
Doc change
2021-07-18 20:06:50 +03:00
tezc
d442ed05ae
Doc change
2021-07-18 20:01:33 +03:00
Ozan Tezcan
50e594d0bd
Update sc_mmap.c
...
sc_mmap, fixed address calculation for msync
2021-05-15 15:59:54 +03:00
Ozan Tezcan
a2f9590038
Merge pull request #77 from tezc/mmap-align
...
auto align msync addr to multiple of OS page size
2021-05-15 15:45:11 +03:00
tezc
fb59e9db3b
auto align msync addr to multiple of OS page size
2021-05-15 15:31:10 +03:00
Ozan Tezcan
a48de52daf
Merge pull request #76 from tezc/fix-m1-signal
...
get backtrace pointer for only MAC_OS_X_VERSION_10_6
2021-05-15 15:07:09 +03:00
tezc
1901bc7c76
get backtrace pointer for only MAC_OS_X_VERSION_10_6
2021-05-15 14:39:51 +03:00
Ozan Tezcan
17973df076
Merge pull request #75 from tezc/fix
...
Fix
2021-05-13 17:49:02 +03:00
tezc
92fcd6b09b
fix sock fail test
2021-05-13 17:02:36 +03:00
tezc
27a370071b
cancelled setting buffer size of a socket
2021-05-13 16:54:25 +03:00
tezc
b78f0b7000
made pow2 functions operate on uint64_t instead of size_t
2021-05-13 16:53:22 +03:00
Ozan Tezcan
57d9fbc07e
readme fix : array, queue, map ( #74 )
...
timer init fix, buf zero len memcpy check
2021-05-09 12:09:09 +03:00
tezc
0943d1f778
readme fix : array, queue, map
2021-05-04 00:00:44 +03:00