整理stream处理流程,适应KNI接口定义。
This commit is contained in:
19
platform/include/internal/proxy.h
Normal file
19
platform/include/internal/proxy.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <tfe_stream.h>
|
||||
#include <event2/event.h>
|
||||
|
||||
struct tfe_proxy;
|
||||
struct tfe_proxy_accept_para
|
||||
{
|
||||
/* Both upstream and downstream FDs */
|
||||
evutil_socket_t upstream_fd;
|
||||
evutil_socket_t downstream_fd;
|
||||
|
||||
/* Session Type */
|
||||
enum tfe_session_proto session_type;
|
||||
};
|
||||
|
||||
struct tfe_proxy * tfe_proxy_new(const char * profile);
|
||||
int tfe_proxy_fds_accept(struct tfe_proxy * ctx, const struct tfe_proxy_accept_para * para);
|
||||
void tfe_proxy_run(struct tfe_proxy * proxy);
|
||||
Reference in New Issue
Block a user