Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LSH
lsh
Commits
b6bbd29e
Commit
b6bbd29e
authored
Jan 28, 1999
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
Rev: src/channel.h:1.23 Rev: src/client.h:1.17
parent
844156a8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/channel.h
+10
-3
10 additions, 3 deletions
src/channel.h
src/client.h
+16
-2
16 additions, 2 deletions
src/client.h
with
26 additions
and
5 deletions
src/channel.h
+
10
−
3
View file @
b6bbd29e
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include
"alist.h"
#include
"alist.h"
#include
"connection.h"
#include
"connection.h"
#include
"parse.h"
#include
"parse.h"
#include
"server_pty.h"
#define CLASS_DECLARE
#define CLASS_DECLARE
#include
"channel.h.x"
#include
"channel.h.x"
...
@@ -47,6 +48,13 @@
...
@@ -47,6 +48,13 @@
(send_window_size simple UINT32)
(send_window_size simple UINT32)
(send_max_packet simple UINT32)
(send_max_packet simple UINT32)
; pty. This is needed by the server only. FIXME: Does it really
; belong here?
(pty object pty_info)
; Value of the TERM environment variable.
(term string)
; FIXME: Perhaps this should be moved to the channel_table, and
; FIXME: Perhaps this should be moved to the channel_table, and
; a pointer to that table be stored here instead?
; a pointer to that table be stored here instead?
(write object abstract_write)
(write object abstract_write)
...
@@ -86,8 +94,7 @@
...
@@ -86,8 +94,7 @@
; Reply from SSH_MSG_CHANNEL_REQUEST
; Reply from SSH_MSG_CHANNEL_REQUEST
(channel_success method int)
(channel_success method int)
(channel_failure method int)))
(channel_failure method int))) */
*/
#define CHANNEL_RECEIVE(s, t, d) \
#define CHANNEL_RECEIVE(s, t, d) \
((s)->receive((s), (t), (d)))
((s)->receive((s), (t), (d)))
...
@@ -184,7 +191,7 @@
...
@@ -184,7 +191,7 @@
#define CHANNEL_OPEN(o, c, a, e, m, d) \
#define CHANNEL_OPEN(o, c, a, e, m, d) \
((o)->handler((o), (c), (a), (e), (m), (d)))
((o)->handler((o), (c), (a), (e), (m), (d)))
/* SSH_MS
H
_CHANNEL_REQUEST */
/* SSH_MS
G
_CHANNEL_REQUEST */
/* CLASS:
/* CLASS:
(class
(class
(name channel_request)
(name channel_request)
...
...
This diff is collapsed.
Click to expand it.
src/client.h
+
16
−
2
View file @
b6bbd29e
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include
"io.h"
#include
"io.h"
#include
"keyexchange.h"
#include
"keyexchange.h"
struct
request_info
;
struct
fd_callback
*
struct
fd_callback
*
make_client_callback
(
struct
io_backend
*
b
,
make_client_callback
(
struct
io_backend
*
b
,
const
char
*
comment
,
const
char
*
comment
,
...
@@ -52,8 +54,20 @@ struct channel_request *make_handle_exit_signal(int *exit_code);
...
@@ -52,8 +54,20 @@ struct channel_request *make_handle_exit_signal(int *exit_code);
struct
connection_startup
*
make_client_startup
(
struct
io_fd
*
in
,
struct
connection_startup
*
make_client_startup
(
struct
io_fd
*
in
,
struct
io_fd
*
out
,
struct
io_fd
*
out
,
struct
io_fd
*
err
,
struct
io_fd
*
err
,
int
final_request
,
struct
request_info
*
requests
,
struct
lsh_string
*
args
,
int
*
exit_status
);
int
*
exit_status
);
struct
request_info
*
make_shell_request
(
struct
request_info
*
next
);
struct
request_info
*
make_pty_request
(
int
fd
,
int
essential
,
int
raw
,
struct
request_info
*
next
);
#if 0
struct lsh_object *make_channel_request(int request, struct lsh_string *args);
#define request_shell() make_channel_request(ATOM_SHELL, ssh_format(""))
#define request_pty(term, w, h, wp, hp, modes) \
make_channel_request(ATOM_PTY_REQ, ssh_format("%z%i%i%i%i%fS", term, w, h, wp, hp, modes))
#endif
#endif
/* LSH_CLIENT_H_INCLUDED */
#endif
/* LSH_CLIENT_H_INCLUDED */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment