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

(class gateway_connection): New class.

Rev: src/gateway.h:1.3.2.3
parent 0bcc37a8
......@@ -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 */
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