Mateusz Pilski wrote:
> > Can you help us help you and provide a full example that repeats this
> > problem?
> i post here mostly simplified working code with this error
Your code is horribly formatted. For your own sake and everyone
else's who might have to read it, it would be good if you clean
> the interesting part is only function mainloop().
> while(1) /*main loop*/
This code is incorrect. Look at example/direct_tcpip.c for the method
which you *must* use when you want to handle both a libssh2 channel
and some other communications channel. (stdin in your case)
I bet that if you press enter in this ssh client then you will get
some more "missing" data displayed on your screen.
Received on 2011-02-24