libssh
0.6.3
|
This file contains the message parsing utilities for client and server programs using libssh. More...
Functions | |
void | ssh_message_free (ssh_message msg) |
Free a SSH message. More... | |
ssh_message | ssh_message_get (ssh_session session) |
Retrieve a SSH message from a SSH session. More... | |
int | ssh_message_subtype (ssh_message msg) |
Get the subtype of the message. More... | |
int | ssh_message_type (ssh_message msg) |
Get the type of the message. More... | |
This file contains the message parsing utilities for client and server programs using libssh.
On the server the 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 you don't know what to do).
void ssh_message_free | ( | ssh_message | msg | ) |
Free a SSH message.
[in] | msg | The message to release the memory. |
References ssh_buffer_free(), ssh_buffer_new(), ssh_channel_free(), ssh_channel_new(), ssh_get_hexa(), ssh_key_free(), SSH_LOG_PACKET, SSH_LOG_PROTOCOL, ssh_message_reply_default(), SSH_PACKET_CALLBACK, SSH_PACKET_NOT_USED, SSH_PACKET_USED, ssh_string_burn(), ssh_string_data(), ssh_string_fill(), ssh_string_free(), ssh_string_free_char(), ssh_string_from_char(), ssh_string_len(), ssh_string_new(), and ssh_string_to_char().
Referenced by ssh_channel_request_x11(), ssh_disconnect(), ssh_free(), and ssh_set_message_callback().
ssh_message ssh_message_get | ( | ssh_session | session | ) |
Retrieve a SSH message from a SSH session.
[in] | session | The SSH session to get the message. |
int ssh_message_subtype | ( | ssh_message | msg | ) |
Get the subtype of the message.
[in] | msg | The message to get the subtype from. |
Referenced by ssh_channel_request_x11().
int ssh_message_type | ( | ssh_message | msg | ) |
Get the type of the message.
[in] | msg | The message to get the type from. |
Referenced by ssh_channel_request_x11().