class GrpcVsockServerBuilder
Defined at line 45 of file ../../src/virtualization/lib/grpc/grpc_vsock_server.h
A thin wrapper around |grpc::ServerBuilder| that also registers the service
ports with the |HostVsockEndpoint|.
Public Methods
void RegisterService (grpc::Service * service)
Registers the gRPC service.
You must add one or more vsock ports with |AddListenPort| for this service
to be accessible over vsock.
Defined at line 19 of file ../../src/virtualization/lib/grpc/grpc_vsock_server.cc
void AddListenPort (uint32_t vsock_port)
Listens on |vsock_port| for new, in-bound connections.
All services added with |RegisterService| will be made available on this
port.
Defined at line 23 of file ../../src/virtualization/lib/grpc/grpc_vsock_server.cc
zx::result<std::pair<std::unique_ptr<GrpcVsockServer>, std::vector< ::fuchsia::virtualization::Listener>>> Build ()
Constructs the |GrpcVsockServer| and starts processing any in-bound
requests on the sockets.
It is safe to free the builder immediately after a call to |Build|.
Defined at line 27 of file ../../src/virtualization/lib/grpc/grpc_vsock_server.cc
void GrpcVsockServerBuilder ()
Defined at line 47 of file ../../src/virtualization/lib/grpc/grpc_vsock_server.h