Mike Black W9MDB
98887b32da
Balance RETURNFUNC2 in network.c
2022-02-13 16:16:02 -06:00
Mike Black W9MDB
7a5bcf0f4a
Balance RETURNFUNC2 in network.c
2022-02-13 16:15:14 -06:00
Mike Black W9MDB
8c34ce1a2d
astyle source code
2022-02-05 15:27:43 -06:00
Mike Black W9MDB
68e121d82c
Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
...
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB
918ca72202
Fix some more mingw compilation errors on network.c
2022-01-31 07:49:37 -06:00
Mike Black W9MDB
9102358fee
Fix more mingw compilation errors on network.c
2022-01-31 07:46:44 -06:00
Mike Black W9MDB
46cd85fb60
Fix mingw compilation errors on network.c
2022-01-31 07:45:56 -06:00
Mike Black W9MDB
7b4b7ee630
Add a depth count to debug statements to help understand calling sequences
...
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB
09c9b01552
Change snprintf to SNPRINTF in src
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-19 09:11:04 -06:00
Mike Black W9MDB
e2bb11aa4c
Change sprintf to SNPRINTF in misc.c, network.c, and rig.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:07:49 -06:00
Mike Black W9MDB
29ff10f455
Change sprintf to SNPRINTF in network.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:41:09 -06:00
Mikael Nousiainen
2857a54ea6
Allow enabling of async data mode via conf option. Ignore multicast data publishing if the publisher routine is not enabled.
2022-01-05 19:12:43 +02:00
Mikael Nousiainen
a00d78c860
Implement pipes using asynchronous/overlapped I/O on Windows
2022-01-03 14:18:49 +02:00
Mike Black W9MDB
2c7394f638
Fix msys compilation with new pipe calls
...
Windows pipe will likely not work and needs to be replaced with overlapped I/O
2021-12-20 12:42:31 -06:00
Mikael Nousiainen
c764336e73
Fix build warnings caused by changes to I/O function signatures
2021-12-18 23:49:45 +02:00
Mikael Nousiainen
56c95b1529
Merge upstream changes and fix conflicts
2021-12-12 23:05:26 +02:00
Mikael Nousiainen
c20f397c24
Refactor WIN32 I/O port routines to be hopefully compatible with async data reader (not tested). Fix some incomplete data fields in UDP snapshot packets.
2021-11-30 09:25:51 +02:00
Mikael Nousiainen
d857f18163
Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far.
2021-11-28 20:52:29 +02:00
Mike Black W9MDB
63a51c36a1
astyle files preparing for 4.4 release
2021-11-28 12:41:10 -06:00
Mike Black W9MDB
3de368f6a2
Add rig_lock and rig_unlock to support serial I/O locking for a transaction
...
https://github.com/Hamlib/Hamlib/issues/695
2021-11-15 07:16:31 -06:00
Mike Black W9MDB
41ebbb02b5
Reduce network_open debug to TRACE instead of ERROR
2021-11-07 08:21:54 -06:00
Mike Black W9MDB
d18c3a8111
Fix cppcheck warning in network.c
2021-10-24 00:03:48 -05:00
Mike Black W9MDB
6a13d40b9a
Reduce scope of var in network.c
2021-09-11 11:24:12 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Mike Black W9MDB
ad43cd793a
Fix MULTICAST boolean logic
2021-08-11 23:10:44 -05:00
Mike Black W9MDB
4bfd71f91f
Fix Icom split and implement reverse split
...
These should work now from rigctl and via the API
S VFOB 1 VFOA
S Sub 1 Main
https://github.com/Hamlib/Hamlib/issues/754
2021-08-02 23:37:31 -05:00
Mike Black W9MDB
7d5fa7dc88
Add new xml tag to flrig for identifying the client...will help debugging.
2021-07-21 22:59:53 -05:00
Mike Black W9MDB
8e63ce7a36
Add multicast thread -- the intent is that this will always run
...
https://github.com/Hamlib/Hamlib/issues/695
2021-05-25 09:29:27 -05:00
Mike Black W9MDB
3e4ff69b96
Add multicast_item_e and change multicast_server API
...
https://github.com/Hamlib/Hamlib/issues/695
2021-05-23 07:40:08 -05:00
Mike Black W9MDB
cc1f277e5f
Beginning of multicast capability
...
https://github.com/Hamlib/Hamlib/issues/695
2021-05-19 13:17:46 -05:00
Mike Black W9MDB
ec68495bd3
Change WSAStartup logic in network.c to better allow for errors.
...
WSAStartup should now get called once only and should be restarted if needed.
https://github.com/Hamlib/Hamlib/issues/679
2021-04-25 08:33:14 -05:00
Michael Black W9MDB
a35f39840c
Fix gai_error to print the status instead of errno
...
https://github.com/Hamlib/Hamlib/issues/589
2021-03-07 11:50:13 -06:00
Michael Black W9MDB
307858f60c
Add RETURNFUNC/ENTERFUNC to network.c
...
https://github.com/Hamlib/Hamlib/issues/514
2021-03-07 11:42:01 -06:00
Michael Black W9MDB
d8bd6a5d4e
Reduce debug level in network.c
2021-02-04 23:47:59 -06:00
Michael Black W9MDB
9db79eb841
Reduce debug level
2021-01-17 08:19:12 -06:00
Michael Black W9MDB
253a3d8643
Fix spelling error
2020-06-22 23:46:27 -05:00
Michael Black W9MDB
a88faf29c7
Fix IPV6 addresses with link local
...
https://github.com/Hamlib/Hamlib/issues/298
2020-06-22 00:00:33 -05:00
Michael Black W9MDB
0f97f33877
Had to mess with _WIN32_WINNT to get inet_pton defined
...
So we change it to 0x0600 and then back to 0x0502
https://github.com/Hamlib/Hamlib/issues/298
2020-06-21 23:51:02 -05:00
Michael Black W9MDB
d27d84c44b
Change AI_NUMERICSERV to NI_NUMERICSERV for Windows compatibility
2020-06-21 23:23:55 -05:00
Michael Black W9MDB
a3c4eb9ee0
Fix cppcheck warnings
2020-06-21 22:31:31 -05:00
Michael Black W9MDB
e092a4a0a4
rigctld -T ::1 now works with rigctl -r ::1
...
More IPV6 testing needed on Windows and MacOS
Still not binding to link local addresses to be addressed next
https://github.com/Hamlib/Hamlib/issues/29
2020-06-21 17:47:04 -05:00
mdblack98
75d9beaac2
Increase NET_BUFFER_SIZE for network.c
2020-04-22 12:26:08 -05:00
Michael Black
f1f0d7f129
Fix some of the documentation
2020-04-09 17:56:19 -05:00
Michael Black
ff8ddf018c
astyle all C files
2020-02-23 11:26:09 -06:00
Michael Black
297bf9aa6b
Fix cppcheck warnings
2020-01-14 23:36:01 -06:00
Michael Black
fb73e5abd7
Fix some cppcheck warnings
...
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black
6ba8f88e2f
Fix cppcheck warnings in network.c
2019-12-08 17:09:08 -06:00
Michael Black
dc3f33bc11
Change %z to %d with casts for portability
2019-11-30 13:05:21 -06:00
Michael Black
6bf3b00c4f
astyle all files
2019-11-30 10:19:08 -06:00
Michael Black
72087f1b10
Change all __FUNCTION__ to __func__
2019-11-30 10:16:28 -06:00