diff options
| author | David Härdeman <david@hardeman.nu> | 2020-06-22 11:29:11 +0200 | 
|---|---|---|
| committer | David Härdeman <david@hardeman.nu> | 2020-06-22 11:29:11 +0200 | 
| commit | f2489c89e95c07495768b5401b63ba31ec39d72d (patch) | |
| tree | 214d29dffaa20c2fff2fd6672168da83508b1f39 /proxy.h | |
| parent | 4f9bedb603c772880248914617cee0b44f848290 (diff) | |
Move local handling from server to proxy
Diffstat (limited to 'proxy.h')
| -rw-r--r-- | proxy.h | 17 | 
1 files changed, 17 insertions, 0 deletions
| @@ -28,4 +28,21 @@ void proxy_delete(struct server_proxy *proxy);  struct server_proxy *proxy_new(struct server *server, struct saddr *client,  			       int fd); +struct server_local { +	struct saddr local; +	struct saddr client; +	struct uring_task task; + +	struct server *server; +	struct list_head list; +}; + +bool local_open(struct server_local *local); + +void local_refdump(struct server_local *local); + +void local_delete(struct server_local *local); + +struct server_local *local_new(struct server *server, struct saddr *saddr); +  #endif | 
