link 50 src/dps8/dps8_absi.c int link; link 186 src/dps8/dps8_absi.c ret = udp_create (cptr, & absi_state[unitno].link); link 205 src/dps8/dps8_absi.c if (absi_state[unitno].link == NOLINK) link 208 src/dps8/dps8_absi.c ret = udp_release (absi_state[unitno].link); link 211 src/dps8/dps8_absi.c absi_state[unitno].link = NOLINK; link 257 src/dps8/dps8_absi.c absi_state[i].link = NOLINK; link 361 src/dps8/dps8_absi.c if (absi_state[unit].link == NOLINK) link 364 src/dps8/dps8_absi.c int sz = udp_receive (absi_state[unit].link, pkt, psz); link 384 src/dps8/dps8_absi.c int rc = udp_send (absi_state[unit].link, pkt, (uint16_t) sz, link 269 src/dps8/dps8_dia.c ret = udp_create (cptr, & dia_data.dia_unit_data[unitno].link); link 288 src/dps8/dps8_dia.c if (dia_data.dia_unit_data[unitno].link == NOLINK) link 291 src/dps8/dps8_dia.c ret = udp_release (dia_data.dia_unit_data[unitno].link); link 294 src/dps8/dps8_dia.c dia_data.dia_unit_data[unitno].link = NOLINK; link 377 src/dps8/dps8_dia.c dia_data.dia_unit_data[unit_num].link = -1; link 429 src/dps8/dps8_dia.c int rc = dn_udp_send (dia_data.dia_unit_data[dev_unit_idx].link, link 897 src/dps8/dps8_dia.c int sz = dn_udp_receive (dia_data.dia_unit_data[unitno].link, pkt, psz); link 943 src/dps8/dps8_dia.c if (dia_data.dia_unit_data[unit_num].link >= 0) link 28 src/dps8/dps8_dia.h int link; link 160 src/dps8/h316_imp.h int32_t link; // h316_udp link number link 136 src/dps8/udplib.c static int udp_parse_remote (int link, char * premote) link 160 src/dps8/udplib.c (void)memset (udp_links [link] . lport, 0, sizeof (udp_links [link] . lport)); link 161 src/dps8/udplib.c (void)memset (udp_links [link] . rhost, 0, sizeof (udp_links [link] . rhost)); link 162 src/dps8/udplib.c (void)memset (udp_links [link] . rport, 0, sizeof (udp_links [link] . rport)); link 168 src/dps8/udplib.c (void)sprintf (udp_links [link] . lport, "%d", lportno); link 169 src/dps8/udplib.c udp_links [link] . lportno = lportno; link 170 src/dps8/udplib.c (void)sprintf (udp_links [link] . rhost, "localhost"); link 171 src/dps8/udplib.c (void)sprintf (udp_links [link] . rport, "%d", rport); link 172 src/dps8/udplib.c udp_links [link] . rportno = rport; link 180 src/dps8/udplib.c (void)sprintf (udp_links [link] . lport, "%d", lportno); link 181 src/dps8/udplib.c udp_links [link] . lportno = lportno; link 188 src/dps8/udplib.c (void)sprintf (udp_links [link] . rhost, "%s", host); link 189 src/dps8/udplib.c (void)sprintf (udp_links [link] . rport, "%s", port); link 190 src/dps8/udplib.c udp_links [link] . rportno = atoi (port); link 191 src/dps8/udplib.c if (udp_links [link] . lport [0] == '\0') link 193 src/dps8/udplib.c strcpy (udp_links [link] . lport, port); link 194 src/dps8/udplib.c udp_links [link] . lportno = atoi (port); link 196 src/dps8/udplib.c if ((strcmp (udp_links [link] . lport, port) == 0) && link 240 src/dps8/udplib.c int link = udp_find_free_link (); link 241 src/dps8/udplib.c if (link < 0) link 245 src/dps8/udplib.c if (udp_parse_remote (link, (char *) premote) != 0) link 250 src/dps8/udplib.c link 251 src/dps8/udplib.c link 268 src/dps8/udplib.c si_me . sin_port = htons ((uint16_t) udp_links [link] . lportno); link 280 src/dps8/udplib.c rc = getaddrinfo (udp_links [link] . rhost, udp_links [link] . rport, NULL, link 291 src/dps8/udplib.c udp_links [link] . sock = sock; link 294 src/dps8/udplib.c udp_links [link] . used = true; link 295 src/dps8/udplib.c * pln = link; link 304 src/dps8/udplib.c link, udp_links [link] . lport, link 305 src/dps8/udplib.c udp_links [link] . rhost, udp_links [link] . rport); link 310 src/dps8/udplib.c int udp_release (int link) link 315 src/dps8/udplib.c if ((link < 0) || (link >= MAXLINKS)) link 317 src/dps8/udplib.c if (! udp_links [link] . used) link 323 src/dps8/udplib.c close (udp_links [link] . sock); link 324 src/dps8/udplib.c udp_links [link] . used = false; link 326 src/dps8/udplib.c (void)printf("link %d - closed\n", link); link 331 src/dps8/udplib.c int udp_send (int link, uint16_t * pdata, uint16_t count, uint16_t flags) link 346 src/dps8/udplib.c if ((link < 0) || (link >= MAXLINKS)) link 348 src/dps8/udplib.c if (! udp_links [link] . used) link 357 src/dps8/udplib.c pkt . sequence = htonl (udp_links [link] . txsequence ++); link 366 src/dps8/udplib.c link 367 src/dps8/udplib.c link 370 src/dps8/udplib.c ssize_t rc = send (udp_links [link] . sock, & pkt, (size_t) pktlen, 0); link 377 src/dps8/udplib.c link, ntohl (pkt . sequence), ntohs (pkt . count)); link 381 src/dps8/udplib.c static int udp_receive_packet (int link, UDP_PACKET * ppkt, size_t pktsiz) link 397 src/dps8/udplib.c link 399 src/dps8/udplib.c link 400 src/dps8/udplib.c link 402 src/dps8/udplib.c link 410 src/dps8/udplib.c ssize_t n = read (udp_links [link] . sock, ppkt, pktsiz); link 421 src/dps8/udplib.c int udp_receive (int link, uint16_t * pdata, uint16_t maxbuf) link 441 src/dps8/udplib.c if ((link < 0) || (link >= MAXLINKS)) link 443 src/dps8/udplib.c if (!udp_links [link] . used) link 448 src/dps8/udplib.c while ((pktlen = udp_receive_packet (link, & pkt, sizeof (pkt))) > 0) link 493 src/dps8/udplib.c if ((pktseq == 0) && (udp_links [link] . rxsequence != 0)) link 497 src/dps8/udplib.c else if (pktseq < udp_links [link] . rxsequence) link 504 src/dps8/udplib.c else if (pktseq != udp_links [link] . rxsequence) link 510 src/dps8/udplib.c udp_links [link] . rxsequence = pktseq + 1; link 522 src/dps8/udplib.c (unsigned long)link, (unsigned long)pktseq, (unsigned long)pktlen); link 44 src/dps8/udplib.h int udp_release (int32_t link); link 45 src/dps8/udplib.h int udp_send (int32_t link, uint16_t * pdata, uint16_t count, uint16_t flags); link 46 src/dps8/udplib.h int udp_receive (int32_t link, uint16_t * pdata, uint16_t maxbufg);