MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ExtendRecvRsp

Method ExtendRecvRsp

adapter/micro_thread/mt_net.cpp:1129–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1127}
1128
1129void CSockLink::ExtendRecvRsp()
1130{
1131 if (NULL == _rsp_buff)
1132 {
1133 _rsp_buff = new_sk_buffer(512);
1134 if (NULL == _rsp_buff)
1135 {
1136 MTLOG_ERROR("no more memory, error");
1137 return;
1138 }
1139 }
1140
1141 _rsp_buff->data_len += read_cache_begin(&_recv_cache, _rsp_buff->data_len,
1142 _rsp_buff->data + _rsp_buff->data_len , _rsp_buff->size - _rsp_buff->data_len);
1143}
1144
1145CHECK_SESSION_CALLBACK CSockLink::GetSessionCallback()
1146{

Callers 1

DispathTcpMethod · 0.95

Calls 2

new_sk_bufferFunction · 0.85
read_cache_beginFunction · 0.85

Tested by

no test coverage detected