libssh  0.5.4
Functions
The SSH message functions

This file contains the Message parsing utilities for server programs using libssh. More...

Functions

ssh_message ssh_message_get (ssh_session session)
 Retrieve a SSH message from a SSH session. More...
 

Detailed Description

This file contains the Message parsing utilities for server programs using libssh.

The main loop of the program will call ssh_message_get(session) to get messages as they come. they are not 1-1 with the protocol messages. then, the user will know what kind of a message it is and use the appropriate functions to handle it (or use the default handlers if she doesn't know what to do

Function Documentation

ssh_message ssh_message_get ( ssh_session  session)

Retrieve a SSH message from a SSH session.

Parameters
[in]sessionThe SSH session to get the message.
Returns
The SSH message received, NULL in case of error.
Warning
This function blocks until a message has been received. Betterset up a callback if this behavior is unwanted.