summaryrefslogtreecommitdiffstats
path: root/tests/pytests/rehandshake/tcp-proxy.h
blob: 668a65fd4e5ef10f673fc6282eba9e5512b04b0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

struct proxy_ctx;

struct proxy_ctx *proxy_allocate();
void proxy_free(struct proxy_ctx *proxy);
int proxy_init(struct proxy_ctx *proxy,
	       const char *server_addr, int server_port,
	       const char *upstream_addr, int upstream_port);
int proxy_start_listen(struct proxy_ctx *proxy);
int proxy_run(struct proxy_ctx *proxy);