Subject: RE: Socket access (for close)

RE: Socket access (for close)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Sep 2009 09:28:26 +0200 (CEST)

On Wed, 2 Sep 2009, Neil Gierman wrote:

> I normally don't pass around the socket. I have been passing around the
> LIBSSH2_SESSION pointer to the different functions that need to make SSH
> calls. I suppose I can extend what I am passing around to also include the
> socket for when I need it, just thought it would be nice to be able to
> extract it from the session pointer that I already pass around.

I don't know how the others feel about it, but libssh2 has never had this
ability so all existing apps have already solved this issue and I'm personally
a bit hesitant to add more tiny helper functions to an API that already has 94
(or so) public functions.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-09-03