You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2021. It is now read-only.
i want to read the first data from one tcp connection in function on_tcp_firstRead, then i want to use another function to read the rest of data in the same tcp connection. what functions should i use?
i have try those functions below, it fail:
ret = uv_read_start((uv_stream_t*)tcp_sock, alloc_buffer, on_tcp_firstRead); //read the frist segment in tcp
...
ret = uv_read_start((uv_stream_t*)tcp_sock, alloc_buffer, on_tcp_common_Read); //read the rest of same tcp
i want to read the first data from one tcp connection in function on_tcp_firstRead, then i want to use another function to read the rest of data in the same tcp connection. what functions should i use?
i have try those functions below, it fail:
ret = uv_read_start((uv_stream_t*)tcp_sock, alloc_buffer, on_tcp_firstRead); //read the frist segment in tcp
...
ret = uv_read_start((uv_stream_t*)tcp_sock, alloc_buffer, on_tcp_common_Read); //read the rest of same tcp