Home
last modified time | relevance | path

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

/samples/bpf/
Dtest_probe_write_user_user.c15 int serverfd, serverconnfd, clientfd; in main() local
33 assert((serverfd = socket(AF_INET, SOCK_STREAM, 0)) > 0); in main()
42 assert(bind(serverfd, &serv_addr, sizeof(serv_addr)) == 0); in main()
45 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0); in main()
56 assert(listen(serverfd, 5) == 0); in main()
65 assert((serverconnfd = accept(serverfd, &tmp_addr, &sockaddr_len)) > 0); in main()