Searched refs:vsock (Results 1 – 5 of 5) sorted by relevance
134 void HandleConnection(cuttlefish::SharedFD vsock, in HandleConnection() argument137 std::thread(SocketToVsock, SocketReceiver{socket}, SocketSender{vsock}); in HandleConnection()138 VsockToSocket(SocketSender{socket}, SocketReceiver{vsock}); in HandleConnection()198 cuttlefish::SharedFD vsock; in VsockServer() local200 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()
385 auto vsock = SharedFD::Socket(AF_VSOCK, type, 0); in VsockServer() local386 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 …]
2 # TODO(b/130668487): Label the vsock sockets.9 # TODO(b/130668487): Label the vsock sockets.
552 chmod 660 /dev/vhost-vsock553 chown root:cvdnetwork /dev/vhost-vsock
130 service socket_vsock_proxy /vendor/bin/socket_vsock_proxy -server=vsock -tcp_port=5555 -vsock_port=…