• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • RPCClient
  • 5.0.0

RPCClient Class

(ServerIO::RPCClient)

Generic RPC (remote procedure call) binary-message-based service client. More...

Header: #include <RPCClient>
  • List of all members, including inherited members

Public Functions

RPCClient(CDPBaseObject *parent, XMLElementEx *cdpConnectorXml, const std::function<void( unsigned int ) > &onConnect, const std::function<void() > &onDisconnect, const std::function<int( const MessagePacketHandle & ) > &onServerResponse)
void FillNodeChildren(CDP::StudioAPI::NodeStream &serializer) const
void SendCall(MessagePacketHandle &procedureMessage)

Detailed Description

Generic RPC (remote procedure call) binary-message-based service client.

See also CDPBaseObject.

Member Function Documentation

RPCClient::RPCClient(CDPBaseObject *parent, XMLElementEx *cdpConnectorXml, const std::function<void( unsigned int ) > &onConnect, const std::function<void() > &onDisconnect, const std::function<int( const MessagePacketHandle & ) > &onServerResponse)

Constructs a RPCClient object.

Any CDPBaseObject based node can create and use a instance of this class for easy RPC service connect and message exchange.

Parameters:

  • parent - node that needs to exchange messages with the RPC service
  • cdpConnectorXml - CDPConnector configuration XML that will be used to configure the RPCClient embedded CDPConnector
  • onConnect - will be called on successful connection to the RPC service
  • onDisconnect - will be called when connection to the RPC service is dropped
  • onServerResponse - will be called on response (CM_RPC_RESPONSE) messages received from RPC service

See also CDPBaseObject.

void RPCClient::FillNodeChildren(CDP::StudioAPI::NodeStream &serializer) const

Should be called by the RPCClient user from the node FillNodeChildren(), to expose the embedded CDPConnector via StudioAPI (can be useful for connection status inspection)

void RPCClient::SendCall(MessagePacketHandle &procedureMessage)

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top