Skip to content

Commit

Permalink
setOptions()
Browse files Browse the repository at this point in the history
  • Loading branch information
partyblob committed Oct 23, 2024
1 parent 3b301b3 commit 50378a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ struct TemplatedAppBase {

TopicTree<TopicTreeMessage, TopicTreeBigMessage> *topicTree = nullptr;

BuilderPatternReturnType &&setOptions(const SocketContextOptions& options) {

/* Options might be more than just SSL in the future */
us_update_socket_context(SSL, (struct us_socket_context_t *) httpContext, (const struct us_socket_context_options_t*) &options);

return std::move(static_cast<BuilderPatternReturnType &&>(*this));
}

/* Server name */
BuilderPatternReturnType &&addServerName(std::string hostname_pattern, SocketContextOptions options = {}) {

Expand Down

0 comments on commit 50378a3

Please sign in to comment.