使用cmsg公共库解析cmsg信息,对业务层提供获取cmsg句柄的接口
This commit is contained in:
@@ -75,6 +75,7 @@ struct tfe_stream_private
|
||||
|
||||
struct tfe_proxy * proxy_ref;
|
||||
struct tfe_thread_ctx * thread_ref;
|
||||
struct tfe_cmsg * cmsg;
|
||||
|
||||
enum tfe_stream_proto session_type;
|
||||
struct tfe_stream_write_ctx * w_ctx_upstream;
|
||||
|
||||
@@ -117,5 +117,5 @@ struct tfe_thread_ctx * tfe_proxy_thread_ctx_acquire(struct tfe_proxy * ctx);
|
||||
void tfe_proxy_thread_ctx_release(struct tfe_thread_ctx * thread_ctx);
|
||||
|
||||
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);
|
||||
int tfe_proxy_fds_accept(struct tfe_proxy * ctx, int fd_downstream, int fd_upstream, struct tfe_cmsg * cmsg);
|
||||
void tfe_proxy_run(struct tfe_proxy * proxy);
|
||||
|
||||
Reference in New Issue
Block a user