Searched defs:udp (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libcs/
H A Dcsfrom.c37 struct udpaddr udp; local
39 if (read(fd, &udp, sizeof(udp)) != sizeof(udp))
41 messagef((state->id, NiL, -1, "from: %d: udp header read error", fd));
46 addr->addr[0] = udp.host;
47 addr->addr[1] = udp.port;
50 if ((n = read(fd, buf, siz)) < 0) messagef((state->id, NiL, -1, "from: %d: udp data read error", fd));
51 else messagef((state->id, NiL, -8, "from(%d,*,%d) = %d, data = `%-.*s', addr = %s, port = %u", fd, siz, n, n, buf, csntoa(state, udp.host), udp
[all...]
H A Dcsto.c36 struct udpaddr udp; local
38 udp.host = addr->addr[0];
39 udp.port = addr->addr[1];
40 if (cswrite(state, fd, &udp, sizeof(udp)) != sizeof(udp))

Completed in 35 milliseconds