Lines Matching refs:level

10 static const char *nxt_socket_sockopt_name(nxt_uint_t level,
75 nxt_socket_getsockopt(nxt_task_t *task, nxt_socket_t s, nxt_uint_t level, in nxt_socket_getsockopt() argument
83 if (nxt_fast_path(getsockopt(s, level, sockopt, &val, &len) == 0)) { in nxt_socket_getsockopt()
85 s, level, nxt_socket_sockopt_name(level, sockopt), val); in nxt_socket_getsockopt()
90 s, level, nxt_socket_sockopt_name(level, sockopt), in nxt_socket_getsockopt()
98 nxt_socket_setsockopt(nxt_task_t *task, nxt_socket_t s, nxt_uint_t level, in nxt_socket_setsockopt() argument
105 if (nxt_fast_path(setsockopt(s, level, sockopt, &val, len) == 0)) { in nxt_socket_setsockopt()
107 s, level, nxt_socket_sockopt_name(level, sockopt), val); in nxt_socket_setsockopt()
112 s, level, nxt_socket_sockopt_name(level, sockopt), val, in nxt_socket_setsockopt()
120 nxt_socket_sockopt_name(nxt_uint_t level, nxt_uint_t sockopt) in nxt_socket_sockopt_name() argument
122 switch (level) { in nxt_socket_sockopt_name()
196 nxt_uint_t level; in nxt_socket_connect() local
222 level = NXT_LOG_ERR; in nxt_socket_connect()
231 level = NXT_LOG_ERR; in nxt_socket_connect()
236 level = NXT_LOG_ALERT; in nxt_socket_connect()
240 nxt_log(task, level, "connect(%d, %*s) failed %E", in nxt_socket_connect()
251 nxt_uint_t level; in nxt_socket_shutdown() local
263 level = NXT_LOG_DEBUG; in nxt_socket_shutdown()
271 level = NXT_LOG_ERR; in nxt_socket_shutdown()
275 level = NXT_LOG_ALERT; in nxt_socket_shutdown()
278 nxt_log(task, level, "shutdown(%d, %ui) failed %E", s, how, err); in nxt_socket_shutdown()
286 nxt_uint_t level; in nxt_socket_close() local
298 level = NXT_LOG_DEBUG; in nxt_socket_close()
306 level = NXT_LOG_ERR; in nxt_socket_close()
310 level = NXT_LOG_ALERT; in nxt_socket_close()
313 nxt_log(task, level, "socket close(%d) failed %E", s, err); in nxt_socket_close()