Home
last modified time | relevance | path

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

/device/google/cuttlefish_common/common/frontend/socket_vsock_proxy/
Dmain.cpp129 void HandleConnection(cvd::SharedFD vsock, in HandleConnection() argument
132 std::thread(SocketToVsock, SocketReceiver{socket}, SocketSender{vsock}); in HandleConnection()
133 VsockToSocket(SocketSender{socket}, SocketReceiver{vsock}); in HandleConnection()
196 cvd::SharedFD vsock; in guest() local
198 vsock = cvd::SharedFD::VsockServer(FLAGS_vsock_port, SOCK_STREAM); in guest()
199 if (!vsock->IsOpen() && !socketErrorIsRecoverable(vsock->GetErrno())) { in guest()
200 LOG(ERROR) << "Could not open vsock socket: " << vsock->StrError(); in guest()
203 } while (!vsock->IsOpen()); in guest()
204 CHECK(vsock->IsOpen()) << "Could not start server on " << FLAGS_vsock_port; in guest()
207 auto vsock_client = cvd::SharedFD::Accept(*vsock); in guest()
/device/google/cuttlefish_common/common/libs/fs/
Dshared_fd.cpp399 auto vsock = cvd::SharedFD::Socket(AF_VSOCK, type, 0); in VsockServer() local
400 if (!vsock->IsOpen()) { in VsockServer()
401 return vsock; in VsockServer()
408 if (vsock->Bind(casted_addr, sizeof(addr)) == -1) { in VsockServer()
409 LOG(ERROR) << "Bind failed (" << vsock->StrError() << ")"; in VsockServer()
410 return SharedFD::ErrorFD(vsock->GetErrno()); in VsockServer()
413 if (vsock->Listen(4) < 0) { in VsockServer()
414 LOG(ERROR) << "Listen failed (" << vsock->StrError() << ")"; in VsockServer()
415 return SharedFD::ErrorFD(vsock->GetErrno()); in VsockServer()
418 return vsock; in VsockServer()
[all …]
/device/google/cuttlefish/shared/sepolicy/
Dadbd.te2 # TODO(b/130668487): Label the vsock sockets.
9 # TODO(b/130668487): Label the vsock sockets.