a socket, just calling tcp_disconnect() on the tcpcb will do the right thing. From Thorsten Frueauf <frueauf@ira.uka.de> and W. Richard Stevens in PR/3738 resp. TCP/IP Illustrated, Vol. 2.