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
55fa03b9
Commit
55fa03b9
authored
Oct 24, 1998
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Renamed "session" to "channel_table". Added connection_startup type.
Rev: src/channel.h:1.5
parent
5577af83
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/channel.h
+19
-7
19 additions, 7 deletions
src/channel.h
with
19 additions
and
7 deletions
src/channel.h
+
19
−
7
View file @
55fa03b9
...
...
@@ -76,10 +76,10 @@ struct ssh_channel
((s)->fail((s), (w)))
/* FIXME: Perhaps, this information is better kept in the connection
* object? In any case, "session" is a bad name, as that name is more
* relevant for the session channel. */
struct
ssh_session
* object? */
struct
channel_table
{
struct
lsh_object
header
;
#if 0
/* FIXME: This is relevant only for the server side. It's probably
* better to store this in the connection struct */
...
...
@@ -139,10 +139,22 @@ struct channel_request
#define CHANNEL_REQUEST(s, c, w, a) \
((s)->handler((s), (c), (w), (a)))
struct
ssh_session
*
make_session
(
void
);
int
alloc_channel
(
struct
ssh_session
*
session
);
void
dealloc_channel
(
struct
ssh_session
*
session
,
int
i
);
struct
ssh_channel
*
lookup_channel
(
struct
ssh_session
*
session
,
UINT32
i
);
struct
connection_startup
{
struct
lsh_object
header
;
int
(
*
start
)(
struct
connection_startup
*
closure
,
struct
channel_table
*
table
,
struct
abstract_write
*
write
);
};
#define CONNECTION_START(c, s, w) ((c)->start((c), (s), (w)))
struct
channel_table
*
make_channel_table
(
void
);
int
alloc_channel
(
struct
channel_table
*
table
);
void
dealloc_channel
(
struct
channel_table
*
table
,
int
i
);
int
register_channel
(
struct
channel_table
*
table
,
struct
ssh_channel
*
channel
);
struct
ssh_channel
*
lookup_channel
(
struct
channel_table
*
table
,
UINT32
i
);
struct
lsh_string
*
format_global_failure
(
void
);
struct
lsh_string
*
format_open_failure
(
UINT32
channel
,
UINT32
reason
,
...
...
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