Home
last modified time | relevance | path

Searched refs:server_socket (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/timesync/
Dtimesyncd-manager.c141 …len = sendto(m->server_socket, &ntpmsg, sizeof(ntpmsg), MSG_DONTWAIT, &m->current_server_address->… in manager_send_request()
644 if (m->server_socket >= 0) in manager_listen_setup()
652 m->server_socket = socket(addr.sa.sa_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in manager_listen_setup()
653 if (m->server_socket < 0) in manager_listen_setup()
656 r = bind(m->server_socket, &addr.sa, m->current_server_address->socklen); in manager_listen_setup()
660 r = setsockopt_int(m->server_socket, SOL_SOCKET, SO_TIMESTAMPNS, true); in manager_listen_setup()
665 (void) setsockopt_int(m->server_socket, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY); in manager_listen_setup()
667 …return sd_event_add_io(m->event, &m->event_receive, m->server_socket, EPOLLIN, manager_receive_res… in manager_listen_setup()
674 m->server_socket = safe_close(m->server_socket); in manager_listen_stop()
1039 return m->server_socket >= 0 || m->resolve_query || m->event_timer; in manager_is_connected()
[all …]
Dtimesyncd-manager.h62 int server_socket; member