(net-close) keeps socket
Posted: Mon Apr 07, 2008 1:22 pm
Hi,
After a TCP connection has been closed, the socket still has a handle. Example with DAYTIME protocol:
After a successfull (net-close), should the socket not contain a 'nil'?
Peter
After a TCP connection has been closed, the socket still has a handle. Example with DAYTIME protocol:
Code: Select all
newLISP v.9.3.0 on Linux, execute 'newlisp -h' for more info.
> (set 'socket (net-connect "10.227.180.20" 13))
3
> (net-receive socket 'buf 1024)
27
> buf
"07 APR 2008 15:19:12 CEST\r\n"
> socket
3
> (net-close socket)
true
> socket
3
Peter