Searched refs:vsock (Results 1 – 3 of 3) sorted by relevance
129 void HandleConnection(cvd::SharedFD vsock, in HandleConnection() argument132 std::thread(SocketToVsock, SocketReceiver{socket}, SocketSender{vsock}); in HandleConnection()133 VsockToSocket(SocketSender{socket}, SocketReceiver{vsock}); in HandleConnection()196 cvd::SharedFD vsock; in guest() local198 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()
399 auto vsock = cvd::SharedFD::Socket(AF_VSOCK, type, 0); in VsockServer() local400 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 …]
2 # TODO(b/130668487): Label the vsock sockets.9 # TODO(b/130668487): Label the vsock sockets.