Add some debug to network.c

pull/1565/head
Mike Black W9MDB 2024-06-06 17:26:57 -05:00
rodzic 967efefabe
commit 83583b6c0a
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -256,10 +256,12 @@ int network_open(hamlib_port_t *rp, int default_port)
if (rp->type.rig == RIG_PORT_UDP_NETWORK)
{
hints.ai_socktype = SOCK_DGRAM;
rig_debug(RIG_DEBUG_VERBOSE, "%s: UDP connect\n", __func__);
}
else
{
hints.ai_socktype = SOCK_STREAM;
rig_debug(RIG_DEBUG_VERBOSE, "%s: TCP connect\n", __func__);
}
if (rp->pathname[0] == ':' && rp->pathname[1] != ':')