Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket stream 新增从 socket 句柄 init 的接口 #70

Closed
longma0008 opened this issue Dec 14, 2018 · 2 comments
Milestone

Comments

@longma0008
Copy link

@longma0008 longma0008 commented Dec 14, 2018

socket stream 新增 socket 句柄 init 的接口,这样就可以方便的 accept 到 client,直接使用 stream 处理了

@longma0008 longma0008 changed the title socket stream 新增 init socket stream 新增 socket 句柄 init 的接口 Dec 14, 2018
@longma0008 longma0008 changed the title socket stream 新增 socket 句柄 init 的接口 socket stream 新增从 socket 句柄 init 的接口 Dec 14, 2018
@waruqi

This comment has been minimized.

Copy link
Member

@waruqi waruqi commented Dec 15, 2018

我加好了,你试试,我初步测了下,还没怎么详测:

/*! init stream from sock reference
 *
 * @param sock          the socket 
 * @param type          the socket type, tcp or udp
 * @param bssl          enable ssl?
 *
 * @return              the stream
 */
tb_stream_ref_t         tb_stream_init_from_sock_ref(tb_socket_ref_t sock, tb_size_t type, tb_bool_t bssl);

你可以更新下dev分支的代码

@waruqi waruqi added this to the v1.6.4 milestone Dec 15, 2018
@longma0008

This comment has been minimized.

Copy link
Author

@longma0008 longma0008 commented Dec 16, 2018

好的

@longma0008 longma0008 closed this Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.