Subject: RE: Socket access (for close)

RE: Socket access (for close)

From: Neil Gierman <ngierman_at_roadrunn.com>
Date: Wed, 2 Sep 2009 16:37:51 -0500

> How did you lose the socket in the first place? You created it, you
> told
> libssh2 about it. Why can't you just keep track of it and close it when
> libssh2 is done with it?
>

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.

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