diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-20 13:14:38 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-20 13:14:38 +0200 |
commit | de7939699e83a35015328371c45d4e3df3b06279 (patch) | |
tree | 286b96f06708db15043ca4f5a02c734f4ecfd3fa /src/protocol.c | |
parent | 9b9825fa6a33a4f9703905100a88190aaf030607 (diff) |
POTD skeleton #64.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index 5b487f1..ad291de 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -32,6 +32,11 @@ int proto_setup(protocol_ctx *ctx, const char *listen_addr, if (fwd_setup_client_silent(&ctx->dst, jail_host, jail_port)) return 1; + return 0; +} + +int proto_listen(protocol_ctx *ctx) +{ if (!ctx->cbs.on_listen) return 1; if (ctx->cbs.on_listen(ctx)) |