1
0
mirror of https://github.com/simh/simh.git synced 2026-04-27 04:26:41 +00:00

H316: Rewrote h316_udp to use TMXR lines for UDP transport of data. Changed h316_mi to leverage built-in loopback mode in TMXR.

This gives UDP transport on all simh host platforms.
This commit is contained in:
Mark Pizzolato
2013-11-26 13:30:11 -08:00
parent 378e3e03a3
commit c9f73eac90
6 changed files with 126 additions and 313 deletions

View File

@@ -599,7 +599,7 @@ if (hostp != NULL) {
hostp[strlen(hostp)-1] = '\0';
}
}
if (host) /* host wanted? */
if (host) { /* host wanted? */
if (hostp != NULL) {
if (strlen(hostp) >= host_len)
return SCPE_ARG; /* no room */
@@ -613,12 +613,14 @@ if (host) /* host wanted? */
strcpy (host, default_host);
}
else {
if (default_host)
if (default_host) {
if (strlen(default_host) >= host_len)
return SCPE_ARG; /* no room */
else
strcpy (host, default_host);
}
}
}
if (validate_addr) {
struct addrinfo *ai_host, *ai_validate, *ai;
t_stat status;