Lines Matching refs:socket

65     niov = nxt_sendbuf_mem_coalesce(c->socket.task, &sb);  in nxt_linux_event_conn_io_sendfile()
98 nxt_debug(c->socket.task, "sendfile(%d, %FD, @%O, %uz)", in nxt_linux_event_conn_io_sendfile()
99 c->socket.fd, fb->file->fd, fb->file_pos, size); in nxt_linux_event_conn_io_sendfile()
103 n = nxt_sys_sendfile(c->socket.fd, fb->file->fd, &offset, size); in nxt_linux_event_conn_io_sendfile()
107 nxt_debug(c->socket.task, "sendfile(): %z", n); in nxt_linux_event_conn_io_sendfile()
113 c->socket.write_ready = 0; in nxt_linux_event_conn_io_sendfile()
120 c->socket.error = err; in nxt_linux_event_conn_io_sendfile()
121 nxt_log(c->socket.task, nxt_socket_error_level(err), in nxt_linux_event_conn_io_sendfile()
123 c->socket.fd, fb->file->fd, fb->file_pos, size, in nxt_linux_event_conn_io_sendfile()
129 nxt_debug(c->socket.task, "sendfile() %E", err); in nxt_linux_event_conn_io_sendfile()
135 c->socket.write_ready = 0; in nxt_linux_event_conn_io_sendfile()
148 n = send(c->socket.fd, buf, size, flags); in nxt_linux_send()
152 nxt_debug(c->socket.task, "send(%d, %p, %uz, 0x%uXi): %z", in nxt_linux_send()
153 c->socket.fd, buf, size, flags, n); in nxt_linux_send()
159 c->socket.write_ready = 0; in nxt_linux_send()
166 c->socket.error = err; in nxt_linux_send()
167 nxt_log(c->socket.task, nxt_socket_error_level(err), in nxt_linux_send()
169 c->socket.fd, buf, size, flags, err); in nxt_linux_send()
174 nxt_debug(c->socket.task, "send() %E", err); in nxt_linux_send()
180 c->socket.write_ready = 0; in nxt_linux_send()
203 n = sendmsg(c->socket.fd, &msg, flags); in nxt_linux_sendmsg()
207 nxt_debug(c->socket.task, "sendmsg(%d, %ui, 0x%uXi): %z", in nxt_linux_sendmsg()
208 c->socket.fd, niov, flags, n); in nxt_linux_sendmsg()
214 c->socket.write_ready = 0; in nxt_linux_sendmsg()
221 c->socket.error = err; in nxt_linux_sendmsg()
222 nxt_log(c->socket.task, nxt_socket_error_level(err), in nxt_linux_sendmsg()
224 c->socket.fd, niov, flags, err); in nxt_linux_sendmsg()
229 nxt_debug(c->socket.task, "sendmsg() %E", err); in nxt_linux_sendmsg()
235 c->socket.write_ready = 0; in nxt_linux_sendmsg()