Searched refs:serverfd (Results 1 – 1 of 1) sorted by relevance
/samples/bpf/ |
D | test_probe_write_user_user.c | 15 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()
|