Function question

2021-08-10 Thread Schuler Jeremy
Dear Mr/Mrs

I started a project with your library. I am now available to connect with SSH 
to Wifi. Now I would like to send data from Server to client and from client to 
server how can I do this?

Best regards


__





Freundliche Gr?sse / Kind regards

Jeremy Schuler


j.schu...@mobatime.com

Moser-Baer AG
Spitalstrasse 7
3454 Sumiswald
Switzerland

Phone:





+41 34 432 4646


Fax:





+41 34 432 4699


www.mobatime.com 
www.mobatec.ch 







__

Confidentiality:
The information contained in this e-mail and in any attached files is 
confidential and/or legally privileged. If you are not the intended recipient, 
please contact the sender and delete this e-mail. Any unauthorised copying or 
distribution of the information contained in this e-mail and/or in any attached 
file is prohibited. The sender and/or the sending company do not accept 
liability for the incorrect and/or incomplete transmission of the information, 
nor for any delay or interruption of the transmission, nor for the damages 
arising from the use of or reliance on the information unless mandatory law 
provides otherwise. E-mails may be interfered with, may contain computer 
viruses or other defects. The sender and/or the sending company give no 
warranties and do not accept liability in relation to these matters, unless 
mandatory law provides otherwise. Thank you for your cooperation.



Re: Function question

2021-08-11 Thread Andreas Schneider
On Wednesday, August 11, 2021 7:52:09 AM CEST Schuler Jeremy wrote:
> Dear Mr/Mrs
> 
> I started a project with your library. I am now available to connect with
> SSH to Wifi. Now I would like to send data from Server to client and from
> client to server how can I do this?

Once you decided what kind of channel you want you use ssh_channel_write()

https://api.libssh.org/stable/
group__libssh__channel.html#ga5d658df773ba854b35ff9f905341e2fb


See also the examples/ directory in the source code.


Cheers

Andreas

-- 
Andreas Schneider a...@cryptomilk.org
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D