Commit 5db1837d authored by Niels Möller's avatar Niels Möller
Browse files

(class gateway_connection): New class.

Rev: src/gateway.h:
parent 0bcc37a8
......@@ -24,16 +24,39 @@
/* 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"
#include "gateway.h.x"
/* 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:
(name gateway_connection)
(super ssh_connection)
(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);
gateway_packet_handler(struct gateway_connection *connection,
uint32_t length, const uint8_t *packet);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment