Commit graph

13 commits

Author SHA1 Message Date
Jonathan Naylor
a0d60b894d Add optional log file rotation and UDP socket reopening. 2020-10-31 21:35:09 +00:00
Jonathan Naylor
5eabb93078 Fix Windows execution. 2020-09-20 21:31:32 +01:00
Jonathan Naylor
7d3e899104 Clean ups for IPv6. 2020-09-06 12:54:08 +01:00
SASANO Takayoshi
816f8ea0a1 Merge remote-tracking branch 'origin' into ipv6 2020-06-12 20:24:17 +09:00
Daniel Caujolle-Bert
c3efabf56c
Redirect stderr messages to the log file, as in daemon mode assert() failure are silent and make wrong INI file hard to fix. 2020-05-09 12:11:08 +02:00
SASANO Takayoshi
dad47317e6 set INADDR_ANY/IN6ADDR_ANY_INIT address string to m_socket
when CUDPSocket::open() is called with m_address (in CUDPSocket) is nothing,
IPv4 socket is created by "0.0.0.0" (INADDR_ANY) address.

This causes a problem that DMRGateway cannot connect to reflector on IPv6.
To choose default INADDR_ANY/IN6ADDR_ANY_INIT address, added
open(address_family) in UDPSocket.cpp.

Following code sets address string at construction, not modified.
	NXDNNetwork.cpp
	POCSAGNetwork.cpp
	YSFNetwork.cpp

Other codes does not set, modified open() -> open(address_family)
	DMRNetwork.cpp
	DStarNetwork.cpp
	MMDVMHost.cpp
	MobileGPS.cpp
	P25Network.cpp
	RemoteCommand.cpp
	RemoteControl.cpp

I think there is more clever method, but I have no other idea.

Maybe IPv6 support for digital radio works, but RemoteControl can work
IPv4 only.
2020-04-06 18:35:12 +09:00
SASANO Takayoshi
c92039d83b modified for IPv6 supported CUDPSocket 2020-04-06 18:34:54 +09:00
Jonathan Naylor
caea12741d Remove need for quotes around the command. 2019-01-10 08:05:33 +00:00
Jonathan Naylor
6f7c7e968e Add command logging. 2019-01-09 11:23:14 +00:00
Jonathan Naylor
d3a84ee707 Initailise the logging corrcectly. 2019-01-08 16:32:12 +00:00
phl0
8df1e14ba4
cstring is not needed here. 2019-01-08 15:19:01 +01:00
phl0
3cc09a70d4
Fix some bugs 2019-01-08 15:13:18 +01:00
Jonathan Naylor
a3aaffd280 Add example remote command program. 2019-01-07 13:23:11 +00:00