|
PLCnext API Documentation 25.0.2.69
|
This class monitors a RSC client call using RAII idiom. More...
#include <RscClient.TransactionGuard.hpp>

Public Member Functions | |
| TransactionGuard (IRscServiceProxy &serviceProxy) | |
| TransactionGuard (const TransactionGuard &arg)=delete | |
| TransactionGuard (TransactionGuard &&arg) noexcept=delete | |
| TransactionGuard & | operator= (const TransactionGuard &arg)=delete |
| TransactionGuard & | operator= (TransactionGuard &&arg) noexcept=delete |
| RscClient (const String &ipcAppName) | |
| Constructs a RSC client for IPC communication. More... | |
| RscClient (const Url &url=Url::GetEmpty()) | |
| Constructs a RSC client for remote communication. More... | |
| RscClient (const RscClient &arg)=delete | |
| RscClient (RscClient &&arg) noexcept | |
| The default move constructor. More... | |
| RscClient & | operator= (const RscClient &arg)=delete |
| RscClient & | operator= (RscClient &&arg) noexcept |
| The default move-assignment operator. More... | |
| ~RscClient (void) | |
| The default destructor. | |
| bool | IsIpc (void) const |
| Determines if this client is used for IPC (local) communication. More... | |
| bool | IsConnected (void) const |
| Determines if this instance is connected yet. More... | |
| RscReader & | GetReader (void) |
| Gets the RSC reader. More... | |
| RscWriter & | GetWriter (void) |
| Gets the RSC writer. More... | |
| void | Connect (const Url &url=Url::GetEmpty()) |
| Connect this client to the specified url. More... | |
| bool | TryConnect (const Url &url=Url::GetEmpty()) |
| Tries to connect this client to the specified url. More... | |
| void | Reconnect (const Url &url=Url::GetEmpty()) |
| Reconnect this client to the specified url. More... | |
| bool | TryReconnect (const Url &url=Url::GetEmpty()) |
| Tries to reconnect this client to the specified url. More... | |
| void | Close (bool disconnectRemoting=true) |
| Disconnects this client. More... | |
| void | Authenticate (SecurityToken authenticationToken) |
| Authenticates the actual connection. More... | |
| RscHandle | GetServiceProviderHandle (const char *serviceProviderName) |
| Gets the service provider handle of the specified service provider name. More... | |
| RscHandle | GetServiceHandle (RscHandle serviceProviderHandle, const char *serviceName) |
| Gets the service handle of the specified service. More... | |
| RscHandle | GetServiceHandle (const char *serviceProviderName, const char *serviceName) |
| Gets the service handle of the specified service. More... | |
| void | GetServiceHandles (const char *serviceProviderName, const char *serviceName, RscHandle &serviceProviderHandle, RscHandle &serviceHandle) |
| Gets the service handles of the specified service. More... | |
| Impl & | GetImpl (void) |
| For internal use only. More... | |
| const Impl & | GetImpl (void) const |
This class monitors a RSC client call using RAII idiom.
This class implements a RSC client.
This class is not intended for direct use, but required by RscGenerator to implement services.
| Arp::Base::Rsc::Commons::Services::RscClient::RscClient | ( | const String & | ipcAppName | ) |
Constructs a RSC client for IPC communication.
| ipcAppName | The application name of the process to connect to. |
| Arp::Base::Rsc::Commons::Services::RscClient::RscClient | ( | const Url & | url = Url::GetEmpty() | ) |
Constructs a RSC client for remote communication.
| url | The url to connect to. |
|
defaultnoexcept |
The default move constructor.
| arg | The argument to move. |
| void Arp::Base::Rsc::Commons::Services::RscClient::Authenticate | ( | SecurityToken | authenticationToken | ) |
Authenticates the actual connection.
| authenticationToken | The authentication token. |
The authentication token might be retrieved by IPasswordAuthenticationService
| void Arp::Base::Rsc::Commons::Services::RscClient::Close | ( | bool | disconnectRemoting = true | ) |
Disconnects this client.
| disconnectRemoting | If this parameter is true the connection is closed explicitly by RSC, before the socket connection is closed. This might solve any troubleshooting during shutdown of the process. |
| void Arp::Base::Rsc::Commons::Services::RscClient::Connect | ( | const Url & | url = Url::GetEmpty() | ) |
Connect this client to the specified url.
| url | The url to connect to for any communication kind. |
| RscException | If the connection could not be established. |
| const RscClient::Impl & Arp::Base::Rsc::Commons::Services::RscClient::GetImpl | ( | void | ) |
For internal use only.
| RscReader & Arp::Base::Rsc::Commons::Services::RscClient::GetReader | ( | void | ) |
Gets the RSC reader.
| RscHandle Arp::Base::Rsc::Commons::Services::RscClient::GetServiceHandle | ( | const char * | serviceProviderName, |
| const char * | serviceName | ||
| ) |
Gets the service handle of the specified service.
| serviceProviderName | The service provider name of the service. |
| serviceName | The service name to get the handle from. |
| RscHandle Arp::Base::Rsc::Commons::Services::RscClient::GetServiceHandle | ( | RscHandle | serviceProviderHandle, |
| const char * | serviceName | ||
| ) |
Gets the service handle of the specified service.
| serviceProviderHandle | The service provider handle of the service. |
| serviceName | The service name to get the handle from. |
| void Arp::Base::Rsc::Commons::Services::RscClient::GetServiceHandles | ( | const char * | serviceProviderName, |
| const char * | serviceName, | ||
| RscHandle & | serviceProviderHandle, | ||
| RscHandle & | serviceHandle | ||
| ) |
Gets the service handles of the specified service.
| serviceProviderName | The service provider name of the service. |
| serviceName | The service name to get the handle from. |
| serviceProviderHandle | The resulting service provider handle. |
| serviceHandle | The resulting service handle. |
| RscHandle Arp::Base::Rsc::Commons::Services::RscClient::GetServiceProviderHandle | ( | const char * | serviceProviderName | ) |
Gets the service provider handle of the specified service provider name.
| serviceProviderName | The specified service provider name to get the handle from. |
| RscWriter & Arp::Base::Rsc::Commons::Services::RscClient::GetWriter | ( | void | ) |
Gets the RSC writer.
| bool Arp::Base::Rsc::Commons::Services::RscClient::IsConnected | ( | void | ) | const |
Determines if this instance is connected yet.
true if this instance is connected, otherwise false.| bool Arp::Base::Rsc::Commons::Services::RscClient::IsIpc | ( | void | ) | const |
Determines if this client is used for IPC (local) communication.
true if this client is used for IPC (local) communication, otherwise false.
|
defaultnoexcept |
The default move-assignment operator.
| arg | The argument to move. |
| void Arp::Base::Rsc::Commons::Services::RscClient::Reconnect | ( | const Url & | url = Url::GetEmpty() | ) |
Reconnect this client to the specified url.
| url | The url to connect to for any communication kind. |
| RscException | If the connection could not be established. |
| bool Arp::Base::Rsc::Commons::Services::RscClient::TryConnect | ( | const Url & | url = Url::GetEmpty() | ) |
Tries to connect this client to the specified url.
| url | The url to connect to for any communication kind. |
true if the connection could be established, otherwise false.| bool Arp::Base::Rsc::Commons::Services::RscClient::TryReconnect | ( | const Url & | url = Url::GetEmpty() | ) |
Tries to reconnect this client to the specified url.
| url | The url to connect to for any communication kind. |
true if the connection could be established, otherwise false.