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
5db1837d
Commit
5db1837d
authored
Feb 23, 2006
by
Niels Möller
Browse files
(class gateway_connection): New class.
Rev: src/gateway.h:1.3.2.3
parent
0bcc37a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gateway.h
View file @
5db1837d
...
...
@@ -24,16 +24,39 @@
#ifndef LSH_GATEWAY_H_INCLUDED
#define LSH_GATEWAY_H_INCLUDED
/* FIXME: Do we really need this file? make_gateway_address should be
merged in lsh.c, but if we merge gateway.c and gateway_commands.c,
this file will be the right one for the declarations. */
#include
"lsh.h"
#include
"connection.h"
#define GABA_DECLARE
#include
"gateway.h.x"
#undef GABA_DECLARE
/* Formats the address of the local gateway socket. */
struct
local_info
*
make_gateway_address
(
const
char
*
local_user
,
const
char
*
remote_user
,
const
char
*
target
);
/* Keeps track of one connection to the gateway. */
/* GABA:
(class
(name gateway_connection)
(super ssh_connection)
(vars
(shared object ssh_connection)
(fd . int)
(reader object service_read_state)
(writer object ssh_write_state)))
*/
struct
gateway_connection
*
make_gateway_connection
(
struct
ssh_connection
*
shared
,
int
fd
);
int
gateway_packet_handler
(
struct
gateway_connection
*
connection
,
uint32_t
length
,
const
uint8_t
*
packet
);
#endif
/* LSH_GATEWAY_H_INCLUDED */
Write
Preview
Supports
Markdown
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