Skip to content

Commit

Permalink
[C++]add aeronDir() method for context (real-logic#1725)
Browse files Browse the repository at this point in the history
* [C++] add aeronDir() method to Context.h

* [C++] add aeronDir() method to Context.h

* [C++] add aeronDir() method to Context.h

* fix
  • Loading branch information
WorkingChen authored and DarrylGamroth committed Jan 22, 2025
1 parent 8f88a31 commit 3336173
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aeron-client/src/main/cpp_wrapper/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,16 @@ class Context
return *this;
}

/**
* Get the directory that the Aeron client will use to communicate with the media driver.
*
* @return aeron directory
*/
inline std::string aeronDir()
{
return std::string(aeron_context_get_dir(m_context));
}

/**
* Set the name for this Aeron client.
*
Expand Down

0 comments on commit 3336173

Please sign in to comment.