Skip to content

Commit

Permalink
parity: Move PMD protocol implementation to source file
Browse files Browse the repository at this point in the history
  • Loading branch information
penberg committed May 7, 2016
1 parent daae888 commit 1726c1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/helix/parity/pmd_protocol.hh
Expand Up @@ -14,10 +14,9 @@ namespace parity {
class pmd_protocol : public core::protocol {
std::string _name;
public:
explicit pmd_protocol(std::string name)
: _name{std::move(name)}
{ }
static bool supports(const std::string& name);

explicit pmd_protocol(std::string name);
virtual core::session* new_session(void *) override;
};

Expand Down
5 changes: 5 additions & 0 deletions src/parity/pmd_protocol.cc
Expand Up @@ -12,6 +12,11 @@ bool pmd_protocol::supports(const std::string& name)
return name == "parity-moldudp64-pmd";
}

pmd_protocol::pmd_protocol(std::string name)
: _name{std::move(name)}
{
}

core::session* pmd_protocol::new_session(void *data)
{
return new nasdaq::moldudp64_session<pmd_handler>(data);
Expand Down

0 comments on commit 1726c1c

Please sign in to comment.