Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First draft of transport interfaces #337

Merged
merged 18 commits into from
Apr 5, 2024

Conversation

serges147
Copy link
Collaborator

@serges147 serges147 commented Apr 4, 2024

Added:

  • transport::ISession
  • transport::IMessage[Rx|Ts]Session
  • transport::I[Request|Response][Rx|Ts]Session

Also:

  • add "std: [14, 17, 20]" to the build matrix
  • add hash tag triggering by #verification #docs tags
  • strip repo absolute path prefix from doxygen file paths #docs

@serges147 serges147 self-assigned this Apr 4, 2024
CONTRIBUTING.md Show resolved Hide resolved
docs/CMakeLists.txt Show resolved Hide resolved
include/libcyphal/types.hpp Outdated Show resolved Hide resolved
include/libcyphal/types.hpp Outdated Show resolved Hide resolved
include/libcyphal/transport/transport.hpp Outdated Show resolved Hide resolved
include/libcyphal/transport/transport.hpp Outdated Show resolved Hide resolved
include/libcyphal/transport/session/svc_sessions.hpp Outdated Show resolved Hide resolved
include/libcyphal/transport/session/svc_sessions.hpp Outdated Show resolved Hide resolved
include/libcyphal/transport/session/svc_sessions.hpp Outdated Show resolved Hide resolved
include/libcyphal/transport/session/session.hpp Outdated Show resolved Hide resolved
@serges147
Copy link
Collaborator Author

>Why the top header in the diagram does not have libcyphal as the first path component?
I believe whole documentation is all about "libcyphal", so I thought it is redundant to repeat.

virtual void run(const TimePoint now) = 0;

protected:
virtual ~IRunnable() = default;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rule of 5 is not upheld

NodeId max_nodes;
std::size_t mtu_bytes;
std::uint64_t transfer_id_modulo;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not to nitpick but I'm just curious are you adding the blank lines before the closing brace on purpose or is it a happy little accident

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually on purpose, like if I have in the end comment like this "}; // ProtocolParams" then I insert NL (new line) so that this comment and previous line don't "visually collapse".

@serges147 serges147 merged commit 17fab90 into issue/336_transport_iterfaces Apr 5, 2024
17 checks passed
@serges147 serges147 deleted the sshirokov/issue_336 branch April 5, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants