Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
0f7c415e
Commit
0f7c415e
authored
Oct 20, 1998
by
Niels Möller
Browse files
Handle channel specific requests.
Rev: src/session.h:1.7
parent
2a314164
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/session.h
View file @
0f7c415e
...
@@ -42,10 +42,11 @@ struct global_request
...
@@ -42,10 +42,11 @@ struct global_request
#define GLOBAL_REQUEST(c, w, a) ((c)->handler((c), (w), (a)))
#define GLOBAL_REQUEST(c, w, a) ((c)->handler((c), (w), (a)))
/* SSH_MSG_CHANNEL_OPEN */
/* SSH_MSG_CHANNEL_OPEN */
struct
channel_open
{
struct
channel_open
{
struct
lsh_object
*
header
;
struct
lsh_object
*
header
;
int
(
*
handler
)(
struct
channel_
request
*
closure
,
int
(
*
handler
)(
struct
channel_
open
*
closure
,
UINT32
channel_number
,
/* Remote channel number */
UINT32
channel_number
,
/* Remote channel number */
UINT32
rec_window_size
,
UINT32
rec_window_size
,
UINT32
rec_max_packet
,
UINT32
rec_max_packet
,
...
@@ -55,4 +56,18 @@ struct channel_open {
...
@@ -55,4 +56,18 @@ struct channel_open {
#define CHANNEL_OPEN(c, n, w, m, a) \
#define CHANNEL_OPEN(c, n, w, m, a) \
((c)->handler((c), (n), (w), (m), (a)))
((c)->handler((c), (n), (w), (m), (a)))
/* SSH_MSH_CHANNEL_REQUEST */
struct
channel_request
{
struct
lsh_object
*
header
;
int
(
*
handler
)(
struct
channel_request
*
closure
,
struct
ssh_channel
*
channel
,
int
want_reply
;
struct
simple_buffer
*
args
);
};
#define CHANNEL_REQUEST(s, c, w, a) \
((s)->handler((s), (c), (w), (a)))
#endif
/* LSH_SESSION_H_INCLUDED */
#endif
/* LSH_SESSION_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment