#292: Wrap all uses of socket with callbacks for better compatibility
--------------------------+-----------------
Reporter: Eschaton | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: API | Version:
Resolution: | Keywords:
Blocked By: | Blocks:
--------------------------+-----------------
Comment (by Eschaton):
I've looked at this and it appears it would be pretty straightforward to
do with only three additional callbacks modeled after the recv/send
callbacks:
- A get_blocking callback to get the current blocking state of the socket
in the couple places it's checked
- A set_blocking callback to set the current blocking state of the socket
in the couple places it's adjusted
- A poll callback to be used by _libssh2_wait_socket() and possibly the
deprecated libssh2_poll()
With only those three callbacks, it should be possible to layer libssh2
atop an arbitrary transport rather than specifically atop Berkeley
sockets.
-- Ticket URL: <https://trac.libssh2.org/ticket/292#comment:1> libssh2 <https://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2014-12-16