使用cmsg公共库解析cmsg信息,对业务层提供获取cmsg句柄的接口
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <stdint.h>
|
||||
#include <tfe_types.h>
|
||||
#include <tfe_utils.h>
|
||||
#include <tfe_cmsg.h>
|
||||
|
||||
enum tfe_stream_proto
|
||||
{
|
||||
@@ -98,6 +99,10 @@ int tfe_stream_shutdown(const struct tfe_stream * stream);
|
||||
int tfe_stream_shutdown_dir(const struct tfe_stream * stream, enum tfe_conn_dir dir);
|
||||
void tfe_stream_kill(const struct tfe_stream * stream);
|
||||
|
||||
/* stream's cmsg */
|
||||
struct tfe_cmsg * tfe_stream_get0_cmsg(const struct tfe_stream * stream);
|
||||
void tfe_stream_cmsg_setup(const struct tfe_stream * stream, struct tfe_cmsg * cmsg);
|
||||
|
||||
/**
|
||||
* @brief Write linear text for given stream
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user