Home
last modified time | relevance | path

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

/net-tools-2.7.6/
Decho-server.c371 int c, ret, fd4 = 0, fd6 = 0, fd4m = 0, fd6m = 0, tcp4 = 0, tcp6 = 0, in main() local
458 if (tcp4) in main()
459 close(tcp4); in main()
467 tcp4 = get_socket(AF_INET, IPPROTO_TCP); in main()
472 fd4, fd6, fd4m, fd6m, tcp4, tcp6); in main()
483 ret = setsockopt(tcp4, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)); in main()
491 bind_device(tcp4, interface, &addr4_recv, sizeof(addr4_recv), AF_INET); in main()
494 if (listen(tcp4, 0) < 0) { in main()
501 if (fcntl(tcp4, F_SETFL, O_NONBLOCK) < 0) { in main()
521 FD_SET(tcp4, &rfds); in main()
[all …]