Commit Graph

17 Commits

Author SHA1 Message Date
Daniel Caujolle-Bert
d9a09a9364 Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x]. 2021-04-25 07:44:55 +02:00
Jonathan Naylor
daa54d3d32 Don't use default arguments for closing the network connection. 2021-04-09 10:16:52 +01:00
Daniel Caujolle-Bert
86f492745e Do not try to send RPTCL if the connection is already broken. 2021-04-02 06:29:57 +02:00
Daniel Caujolle-Bert
41a49d5785 Implement remote command support.
- Defaut port is 7643 (totally arbitrary)

- Using RemoteCommandDMRG, each network can be enabled or disabled (net1 .. net5, xlx):
    ~ $ RemoteCommandDMRG 7643 disable net2
    M: 2021-03-20 11:48:40.494 Command sent: "disable net2" to port: 7643
    M: 2021-03-20 11:48:40.545 OK

- Using RemoteCommandDMRG, a connection status can be retrieved:
    ~ $ RemoteCommandDMRG 7643 status
    M: 2021-03-20 11:49:13.513 Command sent: "status" to port: 7643
    M: 2021-03-20 11:49:13.563 xlx:conn net1:conn net2:n/a net3:n/a net4:conn net5:n/a

A returned string is expected from the socket connection, this is why I did not reuse the MMDVMHost's RemoteCommand (unless MMDVMHost RemoteControl is modified as well).

The exit value can be used in scripting (also 1 if we didn't get any reply).
2021-03-20 13:03:19 +01:00
Jonathan Naylor
f4d9895842 More IPv6 upgrades. 2020-09-05 20:49:30 +01:00
Jonathan Naylor
5e3e9f10b9 Merge branch 'IPv6' into SimpleDMR 2020-09-03 11:16:10 +01:00
Jonathan Naylor
83fbcaaf0a Some cleanups. 2020-08-30 14:42:40 +01:00
Jonathan Naylor
b344248e0a Simplify the Host to DMR Gateway protocol. 2020-08-26 14:20:04 +01:00
SASANO Takayoshi
249bae1e7b replace sockaddr_in -> sockaddr_storage to support IPv6 2019-10-23 12:04:06 +09:00
Jonathan Naylor
0c31af146c Pass through the MMDVM's home position to all connected networks. 2018-10-30 07:42:04 +00:00
Jonathan Naylor
afe593d7b5 Add identification of the DMR Gateway to connected networks. 2018-06-04 21:56:10 +01:00
Jonathan Naylor
367116bdf4 Add optional names for each network for use in the log, 2017-08-01 21:51:22 +01:00
Jonathan Naylor
8bc79767c5 Allow for a startup XLX reflector. 2017-05-30 13:42:30 +01:00
Jonathan Naylor
90f5e17be9 Pass through new GPS and TA data. 2017-05-17 18:58:46 +01:00
Jonathan Naylor
80ef1757c0 Fix compiler warnings. 2017-04-28 17:01:53 +01:00
Jonathan Naylor
ee978a6521 Fix bugs and improve logging. 2017-04-27 20:39:46 +01:00
Jonathan Naylor
c04c3e1aef Initial commit. 2017-04-20 20:51:30 +01:00