Searched refs:sock (Results 1 – 6 of 6) sorted by relevance
/xen-4.10.0-shim-comet/tools/misc/ |
A D | xencons | 24 def __recv_from_sock(sock): argument 29 data = sock.recv(1024) 41 def __send_to_sock(sock): argument 52 sock.send(data) 61 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) 62 sock.connect((host,port)) 79 __recv_from_sock(sock) 86 __send_to_sock(sock)
|
/xen-4.10.0-shim-comet/tools/ocaml/xenstored/ |
A D | utils.ml | 80 let sock = Unix.socket Unix.PF_UNIX Unix.SOCK_STREAM 0 in 81 Unix.bind sock sockaddr; 82 Unix.listen sock 1; 83 sock
|
/xen-4.10.0-shim-comet/tools/xenstore/ |
A D | xenstored_core.c | 326 if (sock != -1) in initialize_fds() 1485 fd = accept(sock, NULL, NULL); in accept_connection() 1810 int *sock, *ro_sock; in init_sockets() local 1816 if (!sock) in init_sockets() 1818 *sock = socket(PF_UNIX, SOCK_STREAM, 0); in init_sockets() 1819 if (*sock < 0) in init_sockets() 1827 talloc_set_destructor(sock, destroy_fd); in init_sockets() 1852 if (listen(*sock, 1) != 0 in init_sockets() 1912 int opt, *sock = NULL, *ro_sock = NULL; in main() local 2000 init_sockets(&sock, &ro_sock); in main() [all …]
|
A D | xs.c | 189 int sock, saved_errno, flags; in get_socket() local 191 sock = socket(PF_UNIX, SOCK_STREAM, 0); in get_socket() 192 if (sock < 0) in get_socket() 195 if ((flags = fcntl(sock, F_GETFD)) < 0) in get_socket() 198 if (fcntl(sock, F_SETFD, flags) < 0) in get_socket() 208 if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) != 0) in get_socket() 211 return sock; in get_socket() 215 close(sock); in get_socket()
|
/xen-4.10.0-shim-comet/tools/ocaml/libs/xs/ |
A D | xs.ml | 158 let sock = Unix.socket Unix.PF_UNIX Unix.SOCK_STREAM 0 in 159 Unix.connect sock sockaddr; 160 Unix.set_close_on_exec sock; 161 make sock
|
/xen-4.10.0-shim-comet/xen/xsm/flask/include/ |
A D | avc.h | 31 struct sock;
|
Completed in 11 milliseconds