Class UCommunicationManager

class UCommunicationManager : public UObject

A class that manages a gRPC server running on a specified URL.

Public Functions

bool RegisterService(std::shared_ptr<grpc::Service> Service)

Register a service with the server.

Parameters:

Service[in] The service to register

Returns:

True if the service was registered successfully, false otherwise

std::unique_ptr<ServerCompletionQueue> GetCompletionQueue()

Get the completion queue for the server.

Returns:

The completion queue

template<typename ServiceType, typename In, typename Out>
inline IPollingBackendInterface<In> *CreatePollingBackend(AsyncRPCHandle<ServiceType, In, Out> TargetRPC, std::shared_ptr<ServiceType> Service)

Create a new Polling Backend, where Unreal Polls for messages of type In.

Template Parameters:
  • ServiceType – The type of the service

  • In – The type of the input message

  • Out – The type of the output message

Parameters:
  • TargetRPC – The RPC method to wrap

  • Service – The service to attach the backend to

template<typename ServiceType, typename In, typename Out>
inline IProducerBackendInterface<Out> *CreateProducerBackend(AsyncRPCHandle<ServiceType, In, Out> TargetRPC, std::shared_ptr<ServiceType> Service)

Create a new Producer Backend, where Unreal Sends messages of type Out.

Template Parameters:
  • ServiceType – The type of the service

  • In – The type of the input message

  • Out – The type of the output message

Parameters:
  • TargetRPC – The RPC method to wrap

  • Service – The service to attach the backend to

template<typename ServiceType, typename In, typename Out>
inline IExchangeBackendInterface<In, Out> *CreateExchangeBackend(AsyncRPCHandle<ServiceType, In, Out> TargetRPC, std::shared_ptr<ServiceType> Service)

Create a new Exchange Backend, where Unreal Sends messages of type Out and receives back messages of type In.

Template Parameters:
  • ServiceType – The type of the service

  • In – The type of the input message

  • Out – The type of the output message

Parameters:
  • TargetRPC – The RPC method to wrap

  • Service – The service to attach the backend to

void ShutdownServer()

Shutdown the Communication manager.

Triggers OnServerShutdownDelegate

bool StartBackends()

Starts all backends created by the communication manager.

Triggers OnServerStartDelegate and OnServerReadyDelegate

~UCommunicationManager()
void Initialize()

Initialize the Communication Manager.

Sets the Port and URL for the server from the Settings Panel

Public Members

FOnServerStartSignature OnServerStartDelegate

A delegate that is called when the server starts.

FOnServerReadySignature OnServerReadyDelegate

A delegate that is called when the server is ready.

FOnServerReadySignature OnConnectionEstablishedDelegate

A delegate that is called when the server establishes a connection.

FOnServerShutdownSignature OnServerShutdownDelegate

A delegate that is called when the server shuts down.

Related pages

  • Visit the Schola product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNA™ 2 GPUs, AMD Ryzen™ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!