MCPcopy Create free account
hub / github.com/VKCOM/kphp / tcp_server_reader_inner

Function tcp_server_reader_inner

net/net-tcp-connections.cpp:196–419  ·  view source on GitHub ↗

reads and parses as much as possible, and returns: 0 : all ok <0 : have to skip |res| bytes before invoking parse_execute >0 : have to read that much bytes before invoking parse_execute -1 : if c->error has been set NEED_MORE_BYTES=0x7fffffff : need at least one byte more */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

tcp_server_readerFunction · 0.85

Calls 10

rwm_clearFunction · 0.85
prealloc_tcp_buffersFunction · 0.85
fork_message_chainFunction · 0.85
msg_buffer_sizeFunction · 0.85
assertFunction · 0.85
readFunction · 0.85
new_msg_partFunction · 0.85
alloc_msg_bufferFunction · 0.85
rwm_fetch_dataFunction · 0.85
exitFunction · 0.50

Tested by

no test coverage detected