the changes to implement udp hangup are trivial tho:
diff -r 51564dc1adae sys/src/9/ip/udp.c
--- a/sys/src/9/ip/udp.c Thu Nov 13 10:23:53 2014 +0100
+++ b/sys/src/9/ip/udp.c Thu Nov 13 15:42:24 2014 +0100
@@ -518,6 +518,11 @@
ucb = (Udpcb*)c->ptcl;
if(n == 1){
+ if(strcmp(f[0], "hangup") == 0){
+ qhangup(c->rq, nil);
+ qhangup(c->wq, nil);
+ return nil;
+ }
if(strcmp(f[0], "headers") == 0){
ucb->headers = 7; /* new headers format */
return nil;-- cinap
