Commit graph

8 commits

Author SHA1 Message Date
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