Skip to content

Commit

Permalink
Support variable resolution in DCP servers
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Nov 28, 2023
1 parent 9ba39f1 commit 65c1778
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hopsandcp/src/dcpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ std::shared_ptr<SlaveDescription_t> DcpServer::createServerDescription() {
Resolution_t resolution = make_Resolution();
resolution.numerator = 1;
resolution.denominator = denominator_t(1.0/mpRootSystem->getTimestep());
resolution.fixed = false;
serverDescription.TimeRes.resolutions.push_back(resolution);
serverDescription.TransportProtocols.UDP_IPv4 = make_UDP_ptr();
serverDescription.TransportProtocols.UDP_IPv4->Control = make_Control_ptr(mHost.c_str(), port_t(mPort));
Expand Down

0 comments on commit 65c1778

Please sign in to comment.