Skip to content
Snippets Groups Projects
Commit 9bec5984 authored by Niels Möller's avatar Niels Möller
Browse files

New function format_session_open().

Rev: src/session.c:1.8
Rev: src/session.h:1.9
parent 8ba5fec3
Branches
Tags
No related merge requests found
...@@ -40,3 +40,11 @@ struct ssh_service *make_session_service(struct alist *global_requests, ...@@ -40,3 +40,11 @@ struct ssh_service *make_session_service(struct alist *global_requests,
return &self->super; return &self->super;
} }
#endif #endif
struct lsh_string *format_session_open(UINT32 channel,
UINT32 window_size, UINT32 max_packet)
{
return ssh_format("%c%a%i%i%i",
SSH_MSG_CHANNEL_OPEN, ATOM_SESSION,
channel, window_size, max_packet);
}
...@@ -27,14 +27,22 @@ ...@@ -27,14 +27,22 @@
#ifndef LSH_SESSION_H_INCLUDED #ifndef LSH_SESSION_H_INCLUDED
#define LSH_SESSION_H_INCLUDED #define LSH_SESSION_H_INCLUDED
#warning session.h should not be used (yet?).
#include "alist.h" #include "alist.h"
#include "connection.h" #include "connection.h"
#include "channel.h" #include "channel.h"
#include "parse.h" #include "parse.h"
#if 0 struct ssh_session
struct ssh_service *make_session_service(struct alist *global_requests, {
struct alist *channel_requests); struct channel super;
#endif
};
struct lsh_string *format_session_open(UINT32 channel,
UINT32 window_size, UINT32 max_packet);
#endif /* LSH_SESSION_H_INCLUDED */ #endif /* LSH_SESSION_H_INCLUDED */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment