Nate Bargmann
d74581f6fe
Merge GitHub PR #1891
2025-09-09 06:06:07 -05:00
Daniele Forsi IU5HKX
717d3e1491
Partially revert "[src] Remove unused includes"
...
This partially reverts commit 83ed5abeb4 .
2025-09-07 11:54:30 +02:00
Nate Bargmann
4c520571df
Merge GitHub PR #1876
2025-08-31 20:11:12 -05:00
Daniele Forsi IU5HKX
83ed5abeb4
[src] Remove unused includes
...
Found by iwyu.
2025-08-30 09:43:45 +02:00
George Baltz N3GB
9a90745ba6
More conditional pthread usage unleashed
...
Anybody know what sync_callback() is supposed to do? Currently
unused, very broken, and not even a header comment.
2025-08-24 19:53:44 -04:00
George Baltz N3GB
1e5adb9fde
Fix errors in error cases
...
Leak FDs in error exits, seg faults if RIG missing.
Found by `gcc -fanalyzer`
2025-08-06 04:56:02 -04:00
George Baltz N3GB
72bc62366d
A few more cppcheck messages silenced
2025-07-28 19:31:20 -04:00
Daniele Forsi IU5HKX
0267068220
Fix ambiguity between system includes and Hamlib includes
2025-07-22 23:33:57 +02:00
George Baltz N3GB
f3e9a859ed
Move ???PORT() macro definitions back to rig.h
...
Many (most?) of the uses of the port structures in Hamlib are to pass through
to the basic I/O routines (rig_flush(), write_block(), read_string()),
without referencing any of the structure data. Don't bother including
port.h if it won't be used.
The ???PORT macros are independent of actual hamlib_port_t data use.
2025-07-10 09:54:03 -04:00
George Baltz N3GB
0148378ed9
Add needed new includes in src/*.c
2025-07-10 09:54:03 -04:00
George Baltz N3GB
07d0d91a44
Yet more cppcheck messages silenced.
2025-06-15 13:52:09 -04:00
Mike Black W9MDB
5c269964c2
astyle files in preparation for release 4.6
2024-11-06 08:07:34 -06:00
Mike Black W9MDB
4613f7d933
Reduce WARN to VERBOSE in network.c
2024-09-22 09:52:49 -05:00
Mike Black W9MDB
437334818f
Revert "Abort multicast routine when UDP errors occur"
...
This reverts commit 3b1283496c .
2024-08-09 11:40:38 -05:00
Mike Black W9MDB
3b1283496c
Abort multicast routine when UDP errors occur
...
Some setups don't work correctly and this is not critical now
2024-08-07 17:26:03 -05:00
George Baltz N3GB
5b8cc94b01
More pointer conversions for rig->state.
2024-07-01 05:52:45 -04:00
George Baltz N3GB
8cdef7f4b1
Finish balancing
2024-06-26 10:16:12 -04:00
Mike Black W9MDB
83583b6c0a
Add some debug to network.c
2024-06-06 17:26:57 -05:00
Mike Black W9MDB
3ce55b2a94
Fix mingw compilation
2024-06-02 08:15:16 -05:00
Mike Black W9MDB
3583b077e8
Add network_flush2 to support async messages from Flex TCP
...
This allow one to send a command to the Flex and process all the messages returned in the backend rather than thread.
This then gives a synchronous behavior which clients expect
2024-05-29 06:13:59 -05:00
Mike Black W9MDB
2cc68f4773
Fix compilation for mingw DLL
2024-01-21 16:38:19 -06:00
Mikael Nousiainen
eb7634abfb
Merge upstream changes and fix conflicts
2024-01-15 09:24:17 +02:00
Mike Black W9MDB
eab660500e
Suppress UDP packet error when errno==0
...
https://github.com/Hamlib/Hamlib/issues/1461
2024-01-06 16:12:48 -06:00
Mikael Nousiainen
051e671bfa
Merge upstream changes and fix conflicts. Use snprintf() in most sprintflst.c functions to avoid buffer overflows.
2024-01-04 10:43:15 +02:00
Mike Black W9MDB
08ba518b71
Change network.s to allow MacOS compilation for is_networked
...
https://github.com/Hamlib/Hamlib/issues/1463
2023-12-26 06:40:11 -06:00
Mike Black W9MDB
32f37d390f
Allow mulitcast receiver to continue after error==0
...
https://github.com/Hamlib/Hamlib/issues/1418
2023-12-25 16:13:43 -06:00
Mike Black W9MDB
3ba1bc2c19
Get the right variable name for checking the 169.x.x.x address
...
https://github.com/Hamlib/Hamlib/issues/1461
2023-12-24 22:26:04 -06:00
Mike Black W9MDB
b2850ff7a8
Fix warning message on duplicate IP addresses to only when trying to use
...
https://github.com/Hamlib/Hamlib/issues/1461
2023-12-24 16:25:43 -06:00
Mike Black W9MDB
675ed1c85a
Fix 169.x.x.x network detection
...
https://github.com/Hamlib/Hamlib/issues/1461
2023-12-24 16:18:48 -06:00
Mike Black W9MDB
a1b56bc315
Prevent multicast from trying to use 169.x.x.x network
...
https://github.com/Hamlib/Hamlib/issues/1461
2023-12-24 14:52:37 -06:00
Mike Black W9MDB
8c8c20c256
Make multicast bind the IPV4 address if available
...
https://github.com/Hamlib/Hamlib/issues/1461
2023-12-24 11:39:30 -06:00
Mike Black W9MDB
37c0f07ecb
Add some debug for https://github.com/Hamlib/Hamlib/issues/1461
2023-12-23 00:01:56 -06:00
Mikael Nousiainen
1cc08d2f00
Merge upstream and fix conflicts
2023-12-19 18:03:12 +02:00
Mike Black W9MDB
3a6073d401
astyle files
2023-12-18 08:25:15 -06:00
Mike Black W9MDB
bc6f874675
Fix wireless detection
2023-12-17 23:13:32 -06:00
Mike Black W9MDB
dbb8f4d5a7
Remove some debug statements
2023-12-17 22:29:21 -06:00
Mike Black W9MDB
1f38d59153
Fix Windows rigctl shutdown
...
https://github.com/Hamlib/Hamlib/issues/1448
2023-12-17 17:38:28 -06:00
Mike Black W9MDB
e267c62764
astyle files
2023-12-16 11:37:58 -06:00
Mike Black W9MDB
27d7e8bd2d
Revert "Speed up shutdown of multicast thread"
...
This broke Windows rigctl quit
This reverts commit b25b496051 .
2023-12-09 15:57:47 -06:00
Mike Black W9MDB
b25b496051
Speed up shutdown of multicast thread
2023-12-09 09:45:21 -06:00
Mike Black W9MDB
7973db52de
Remove debug from network.c
2023-11-29 14:53:39 -06:00
Mike Black W9MDB
001dd01a10
Fix more compile errors for mingw
2023-11-29 12:53:16 -06:00
Mike Black W9MDB
756fad1c72
Fix compile error on mingw with network.c
2023-11-29 12:47:38 -06:00
Mike Black W9MDB
07f57cfc18
Fix error on ctrl-c of rigctld
2023-11-29 12:45:11 -06:00
Mike Black W9MDB
46c16b22a0
Fix compile warning
2023-11-26 12:41:26 -06:00
Mikael Nousiainen
00cb0eccdc
Fix multicast publisher write commands to use a mutex lock to prevent corruption in (spectrum) data written with multiple write() calls. Remove unnecessary hl_usleep() calls in Icom backend, as the frame parser will correctly detect transceive messages.
2023-11-22 18:41:55 +02:00
Mikael Nousiainen
7b341a2ad6
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-20 10:16:15 +02:00
Mike Black W9MDB
41a1da795c
Fix build for Apple
...
https://github.com/Hamlib/Hamlib/issues/1430
2023-11-16 15:42:52 -06:00
Mike Black W9MDB
c1780b19f4
Add wireless detection for multicast address -- possible fix for UDP error messages by using 127.0.0.1 instead of IN_ADDR_ANY
...
https://github.com/Hamlib/Hamlib/issues/1409
2023-11-16 09:05:29 -06:00
Mike Black W9MDB
8478367223
Improve rigctld printout when TCP session is aborted
2023-11-14 10:23:14 -06:00