SocketStream
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#ifndef INCLUDED_C_SOCKETSTREAM_H
|
||||
#define INCLUDED_C_SOCKETSTREAM_H
|
||||
|
||||
#ifndef INCLUDED_C_SOCKET_H
|
||||
#include <c_Socket.h>
|
||||
#endif /*INCLUDED_C_SOCKET_H*/
|
||||
|
||||
|
||||
#ifndef INCLUDED_C_INSTREAM_H
|
||||
#include <c_InStream.h>
|
||||
#endif /*INCLUDED_C_INSTREAM_H*/
|
||||
|
||||
|
||||
#ifndef INCLUDED_C_OUTSTREAM_H
|
||||
#include <c_OutStream.h>
|
||||
#endif /*INCLUDED_C_OUTSTREAM_H*/
|
||||
|
||||
|
||||
#ifndef INCLUDED_C_ALLOCATOR_H
|
||||
#include <c_Allocator.h>
|
||||
#endif /*INCLUDED_C_ALLOCATOR_H*/
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
/**
|
||||
* @brief 实例化一个绑定到网络套接字的 polymorphic 输入流读取器
|
||||
* @param out_stream 成功后接收 c_InStream_t 抽象接口指针
|
||||
* @param sock 有效的且已建立连接的底层套接字句柄描述符
|
||||
*/
|
||||
c_err_t c_SocketInStream_Create(c_InStream_t** out_stream, c_socket_t sock, c_Allocator_t* allocator);
|
||||
|
||||
/**
|
||||
* @brief 实例化一个绑定到网络套接字的 polymorphic 输出流写入器
|
||||
* @param out_stream 成功后接收 c_OutStream_t 抽象接口指针
|
||||
* @param sock 有效的且已建立连接的底层套接字句柄描述符
|
||||
*/
|
||||
c_err_t c_SocketOutStream_Create(c_OutStream_t** out_stream, c_socket_t sock, c_Allocator_t* allocator);
|
||||
|
||||
|
||||
|
||||
#endif /*INCLUDED_C_SOCKETSTREAM_H*/
|
||||
Reference in New Issue
Block a user