mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds the ability to set a connection URI outside of the server handshake
This commit is contained in:
@@ -497,6 +497,15 @@ public:
|
||||
* @return The port component of the connection URI
|
||||
*/
|
||||
uint16_t get_port() const;
|
||||
|
||||
/// Sets the connection URI
|
||||
/**
|
||||
* This should really only be called by internal library methods unless you
|
||||
* really know what you are doing.
|
||||
*
|
||||
* @param uri The new URI to set
|
||||
*/
|
||||
void set_uri(uri_ptr uri);
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
// Pass-through access to the request and response objects //
|
||||
|
||||
@@ -299,6 +299,12 @@ uint16_t connection<config>::get_port() const {
|
||||
return m_uri->get_port();
|
||||
}
|
||||
|
||||
template <typename config>
|
||||
void connection<config>::set_uri(uri_ptr uri) {
|
||||
//scoped_lock_type lock(m_connection_state_lock);
|
||||
m_uri = uri;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user