chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] tcp-shutdown


From: Jim Ursetto
Subject: Re: [Chicken-hackers] tcp-shutdown
Date: Wed, 25 Jul 2012 20:48:25 -0500

If you close the input or output port (e.g. with close-output-port) then the 
tcp unit will shutdown that half of the conversation.  Does that not work?
Jim

On Jul 25, 2012, at 12:18, Seth Alves <address@hidden> wrote:

> 
> I have some code that uses the openssl egg.  I'm not able to find a way (as a 
> client) to send eof to the server.  Neither the openssl egg nor the tcp 
> module provide any sort of "shutdown".  The socket egg provides shutdown, but 
> the openssl egg is based on tcp.
> 
> With this patch
> 
>  http://paste.lisp.org/display/130677
> 
> I can do something like
> 
>  (tcp-shutdown (ssl-port->tcp-port (cadr ssl-sock)) 1)
> 
> I cargo-culted this patch, so I wont be surprised if it has problems.
> 
>    -seth
> 
> _______________________________________________
> Chicken-hackers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-hackers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]