Home
last modified time | relevance | path

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

/device/google/cuttlefish/common/frontend/socket_vsock_proxy/
Dmain.cpp134 void HandleConnection(cuttlefish::SharedFD vsock, in HandleConnection() argument
137 std::thread(SocketToVsock, SocketReceiver{socket}, SocketSender{vsock}); in HandleConnection()
138 VsockToSocket(SocketSender{socket}, SocketReceiver{vsock}); in HandleConnection()
198 cuttlefish::SharedFD vsock; in VsockServer() local
200 vsock = cuttlefish::SharedFD::VsockServer(FLAGS_vsock_port, SOCK_STREAM); in VsockServer()
201 if (!vsock->IsOpen() && !socketErrorIsRecoverable(vsock->GetErrno())) { in VsockServer()
202 LOG(ERROR) << "Could not open vsock socket: " << vsock->StrError(); in VsockServer()
205 } while (!vsock->IsOpen()); in VsockServer()
206 CHECK(vsock->IsOpen()) << "Could not start server on " << FLAGS_vsock_port; in VsockServer()
209 auto vsock_client = cuttlefish::SharedFD::Accept(*vsock); in VsockServer()
/device/google/cuttlefish/common/libs/fs/
Dshared_fd.cpp385 auto vsock = SharedFD::Socket(AF_VSOCK, type, 0); in VsockServer() local
386 if (!vsock->IsOpen()) { in VsockServer()
387 return vsock; in VsockServer()
394 if (vsock->Bind(casted_addr, sizeof(addr)) == -1) { in VsockServer()
395 LOG(ERROR) << "Bind failed (" << vsock->StrError() << ")"; in VsockServer()
396 return SharedFD::ErrorFD(vsock->GetErrno()); in VsockServer()
399 if (vsock->Listen(4) < 0) { in VsockServer()
400 LOG(ERROR) << "Listen failed (" << vsock->StrError() << ")"; in VsockServer()
401 return SharedFD::ErrorFD(vsock->GetErrno()); in VsockServer()
404 return vsock; in VsockServer()
[all …]
/device/google/cuttlefish/shared/sepolicy/vendor/
Dadbd.te2 # TODO(b/130668487): Label the vsock sockets.
9 # TODO(b/130668487): Label the vsock sockets.
/device/google/cuttlefish/tools/
Dcreate_base_image_arm.sh552 chmod 660 /dev/vhost-vsock
553 chown root:cvdnetwork /dev/vhost-vsock
/device/google/cuttlefish/shared/config/
Dinit.vendor.rc130 service socket_vsock_proxy /vendor/bin/socket_vsock_proxy -server=vsock -tcp_port=5555 -vsock_port=…