Commit Graph

18 Commits

Author SHA1 Message Date
Jonathan Naylor f81e8fbdf5
Merge pull request #736 from f1rmb/hosts_remote_command
Add new remote command:
2022-01-24 07:12:44 +00:00
Daniel Caujolle-Bert a30ae3af4d Add new remote command:
- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
Increase buffer size, for reply string, from 100 to 1024.
2022-01-21 10:51:41 +00:00
Daniel Caujolle-Bert a6b05aab5b Display optional argument to RemoteCommand's usage output. 2022-01-20 14:25:53 +01:00
Daniel Caujolle-Bert 27b7d3fc41
Add RemoteCommand 'status' command.
As DMRGateway, it reports connection status.

Command sent: "status" to port: 7642
dstar:n/a dmr:conn ysf:n/a p25:n/a nxdn:n/a fm:n/a

RemoveCommand has been slighlty modified, as using Log on a read-only filesystem simply forbids the strings to be displayed.
Another solution would be to set LogInitialisse's filePath to "/tmp/" for *nix systems.
2021-03-22 20:32:43 +01:00
Daniel Caujolle-Bert 629cdcfb2a
Unitying RemoteCommand with latest DMRGateway's RemoteControl PR. 2021-03-20 18:12:25 +01:00
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