Lightstreamer C++ Client SDK
Loading...
Searching...
No Matches
ConnectionDetails.h
1#ifndef INCLUDED_Lightstreamer_ConnectionDetails
2#define INCLUDED_Lightstreamer_ConnectionDetails
3
4#include "../Lightstreamer.h"
5
6namespace Lightstreamer {
7
19 HaxeObject _delegate = nullptr;
20
21 void initDelegate(HaxeObject client) {
22 _delegate = LightstreamerClient_getConnectionDetails(client);
23 }
24
25 friend class LightstreamerClient;
26public:
27 ConnectionDetails(const ConnectionDetails&) = delete;
28 ConnectionDetails& operator=(const ConnectionDetails&) = delete;
29
31
33 Lightstreamer_releaseHaxeObject(_delegate);
34 }
44 std::string getAdapterSet() {
45 return ConnectionDetails_getAdapterSet(_delegate);
46 }
67 void setAdapterSet(const std::string& adapterSet) {
68 ConnectionDetails_setAdapterSet(_delegate, &adapterSet);
69 }
75 std::string getServerAddress() {
76 return ConnectionDetails_getServerAddress(_delegate);
77 }
108 void setServerAddress(const std::string& serverAddress) {
109 ConnectionDetails_setServerAddress(_delegate, &serverAddress);
110 }
118 std::string getUser() {
119 return ConnectionDetails_getUser(_delegate);
120 }
140 void setUser(const std::string& user) {
141 ConnectionDetails_setUser(_delegate, &user);
142 }
168 return ConnectionDetails_getServerInstanceAddress(_delegate);
169 }
192 std::string getServerSocketName() {
193 return ConnectionDetails_getServerSocketName(_delegate);
194 }
213 std::string getClientIp() {
214 return ConnectionDetails_getClientIp(_delegate);
215 }
228 std::string getSessionId() {
229 return ConnectionDetails_getSessionId(_delegate);
230 }
255 void setPassword(const std::string& password) {
256 ConnectionDetails_setPassword(_delegate, &password);
257 }
258};
259
260} // namespace Lightstreamer
261
262#endif // INCLUDED_Lightstreamer_ConnectionDetails
Used by LightstreamerClient to provide a basic connection properties data object.
Definition ConnectionDetails.h:18
std::string getUser()
Inquiry method that gets the username to be used for the authentication on Lightstreamer Server when ...
Definition ConnectionDetails.h:118
void setAdapterSet(const std::string &adapterSet)
Setter method that sets the name of the Adapter Set mounted on Lightstreamer Server to be used to han...
Definition ConnectionDetails.h:67
void setPassword(const std::string &password)
Setter method that sets the password to be used for the authentication on Lightstreamer Server when i...
Definition ConnectionDetails.h:255
std::string getServerSocketName()
Inquiry method that gets the instance name of the Server which is serving the current session.
Definition ConnectionDetails.h:192
std::string getSessionId()
Inquiry method that gets the ID associated by the server to this client session.
Definition ConnectionDetails.h:228
std::string getServerInstanceAddress()
Inquiry method that gets the server address to be used to issue all requests related to the current s...
Definition ConnectionDetails.h:167
void setUser(const std::string &user)
Setter method that sets the username to be used for the authentication on Lightstreamer Server when i...
Definition ConnectionDetails.h:140
std::string getAdapterSet()
Inquiry method that gets the name of the Adapter Set (which defines the Metadata Adapter and one or s...
Definition ConnectionDetails.h:44
void setServerAddress(const std::string &serverAddress)
Setter method that sets the address of Lightstreamer Server.
Definition ConnectionDetails.h:108
std::string getServerAddress()
Inquiry method that gets the configured address of Lightstreamer Server.
Definition ConnectionDetails.h:75
std::string getClientIp()
Inquiry method that gets the IP address of this client as seen by the Server which is serving the cur...
Definition ConnectionDetails.h:213
Facade class for the management of the communication to Lightstreamer Server.
Definition LightstreamerClient.h:34