Re: Question about an eventloop.

2015-08-26 Thread Stef Bon
2015-08-26 17:55 GMT+02:00 Peter Stuge pe...@stuge.se: Stef Bon wrote: Dude, you need to read the protocol docs now. RFC4250 onwards. I know that everything is described in the protocol documents, but - is my experience - someone can explain things in much better way that docs do

Question about an eventloop.

2015-08-25 Thread Stef Bon
Hi, I'm writing a fuse fs using libssh2. It looks good. First I've tried libssh, but found it not so handy. With libssh2 I can use calls like libssh2_sftp_stat_ex and libssh2_sftp_readdir_ex. With libssh I found it more difficult. I have some questions: - for receiving data the call

Re: Question about an eventloop.

2015-08-26 Thread Stef Bon
2015-08-26 9:20 GMT+02:00 Salvador Fandino sfand...@gmail.com: draft-ietf-secsh-filexfer packets have a request-id though. Right, all this conversation seemed to be ignoring that there are two differemt protocols: SSH and SFTP. Aha. I'm pretty new to SSH. I know that SFTP is a subsystem,

Re: Question about an eventloop.

2015-08-26 Thread Stef Bon
, but as a kickstart some hints maybe usefull and appreciated. Stef Bon ___ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Re: Question about an eventloop.

2015-08-25 Thread Stef Bon
2015-08-25 21:46 GMT+02:00 Peter Stuge pe...@stuge.se: Stef Bon wrote: Why an eventloop is not used? Noone has implemented it. Ok. If I write it and propose a patch here, would there be some interest? Adding support for an eventloop is providing a callback when data is available

Re: Question about an eventloop.

2015-08-25 Thread Stef Bon
2015-08-25 23:09 GMT+02:00 Peter Stuge pe...@stuge.se: I do not know yet howto deal with that. I haven't started yet. Are there issues? Nothing specific to libssh2, just in general you need to decide how applications can/should deal with the different behaviors of sync vs. async APIs.

Re: Question about an eventloop.

2015-08-25 Thread Stef Bon
2015-08-25 22:34 GMT+02:00 Peter Stuge pe...@stuge.se: Stef Bon wrote: Ok. If I write it and propose a patch here, would there be some interest? It depends on the patch. Ok. Adding support for an eventloop is providing a callback when data is available in the socket. This callback

Re: Multiple channels and epoll(7)

2020-11-16 Thread Stef Bon
Hi, I am not that familiar with libssh2, but is there a fd associated with every channel? Or is there a mutex/cond which are doing the signalling data is available? Only then you can do a per channel waiting/handling for io. Stef ___ libssh2-devel

Re: Multiple channels and epoll(7)

2020-11-16 Thread Stef Bon
Hi, Goodmorning. How do you do? I know the design of SSH and the connection protocol described in RFC 4254, and I know that by design only the ssh session has a fd. I'm working on a FUSE network filesystem service which connects to SSH servers in the network automatically, using Avahi to detect

Re: Is it possible to execute several different commands in a single channel without opening another session again?

2021-02-12 Thread Stef Bon
start a remote shell, non-interactive. Stef ___ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Re: Is it possible to execute several different commands in a single channel without opening another session again?

2021-02-12 Thread Stef Bon
Like in another answer you have to process the SSH_MSG_CHANNEL_DATA and SSH_MSG_CHANNEL_EXTENDED_DATA messages. See: https://tools.ietf.org/html/rfc4254 Keep us/me informed you are working it out. Stef ___ libssh2-devel