Lines Matching defs:listen

2  * services/listen_dnsport.c - listen on port 53 for incoming DNS queries.
85 /** number of queued TCP connections for listen() */
155 systemd_get_activated(int family, int socktype, int listen,
164 /* We should use "listen" option only for stream protocols. For UDP it should be -1 */
196 if(sd_is_socket(SD_LISTEN_FDS_START + i, family, socktype, listen)) {
216 int rcv, int snd, int listen, int* reuseport, int transparent,
275 if(listen) {
643 !(errno == EACCES && verbosity < 4 && !listen)
645 && !(errno == EADDRNOTAVAIL && verbosity < 4 && !listen)
655 !(WSAGetLastError() == WSAEACCES && verbosity < 4 && !listen)) {
866 if(listen(s, TCP_BACKLOG) == -1) {
867 log_err("can't listen: %s", sock_strerror(errno));
979 if (listen(s, TCP_BACKLOG) == -1) {
980 log_err("can't listen: %s", strerror(errno));
1396 * @param front: listen struct.
1975 size_t listen_get_mem(struct listen_dnsport* listen)
1978 size_t s = sizeof(*listen) + sizeof(*listen->base) +
1979 sizeof(*listen->udp_buff) +
1980 sldns_buffer_capacity(listen->udp_buff);
1982 s += sizeof(*listen->dnscrypt_udp_buff);
1983 if(listen->udp_buff != listen->dnscrypt_udp_buff){
1984 s += sldns_buffer_capacity(listen->dnscrypt_udp_buff);
1987 for(p = listen->cps; p; p = p->next) {
1994 void listen_stop_accept(struct listen_dnsport* listen)
1999 for(p=listen->cps; p; p=p->next) {
2007 void listen_start_accept(struct listen_dnsport* listen)
2010 * use to listen to them because they have no free tcp handlers */
2012 for(p=listen->cps; p; p=p->next) {
2365 /* switch to listen to write events */