Lines Matching refs:proto
166 size_t buf_len, const char *proto) in recv_data_wso_api() argument
189 "waiting (%d/%d)", proto, ret, errno); in recv_data_wso_api()
201 proto, amount, total_read, remaining); in recv_data_wso_api()
205 LOG_DBG("%s recv %d bytes", proto, total_read); in recv_data_wso_api()
210 size_t buf_len, const char *proto) in recv_data_bsd_api() argument
227 "waiting (%d/%d)", proto, ret, errno); in recv_data_bsd_api()
239 proto, amount, read_pos, remaining); in recv_data_bsd_api()
243 LOG_DBG("%s recv %d bytes", proto, read_pos); in recv_data_bsd_api()
247 static bool send_and_wait_msg(int sock, size_t amount, const char *proto, in send_and_wait_msg() argument
277 LOG_ERR("%s failed to send data using %s (%d)", proto, in send_and_wait_msg()
280 LOG_DBG("%s connection closed", proto); in send_and_wait_msg()
285 LOG_DBG("%s sent %d bytes", proto, ret); in send_and_wait_msg()
289 recv_data_wso_api(sock, amount + 1, buf, buf_len, proto); in send_and_wait_msg()
291 recv_data_bsd_api(sock, amount + 1, buf, buf_len, proto); in send_and_wait_msg()