Skip to content

Commit

Permalink
Restore echo/suppress_ga client and server for MSVC DLL
Browse files Browse the repository at this point in the history
  • Loading branch information
KazDragon committed Jan 5, 2024
1 parent 968c7ea commit 97cb148
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ target_sources(telnetpp
src/command.cpp
src/element.cpp
src/negotiation.cpp
src/options/echo/client.cpp
src/options/echo/server.cpp
src/options/mccp/client.cpp
src/options/mccp/codec.cpp
src/options/mccp/server.cpp
Expand All @@ -151,6 +153,8 @@ target_sources(telnetpp
src/options/naws/server.cpp
src/options/new_environ/client.cpp
src/options/new_environ/server.cpp
src/options/suppress_ga/client.cpp
src/options/suppress_ga/server.cpp
src/options/terminal_type/client.cpp
src/session.cpp
src/subnegotiation.cpp
Expand Down
5 changes: 1 addition & 4 deletions include/telnetpp/options/echo/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class TELNETPP_EXPORT client : public telnetpp::options::basic_client<
telnetpp::options::echo::detail::option>
{
public:
constexpr explicit client(telnetpp::session &sess) noexcept
: basic_client(sess)
{
}
explicit client(telnetpp::session &sess) noexcept;
};

} // namespace telnetpp::options::echo
5 changes: 1 addition & 4 deletions include/telnetpp/options/echo/server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class TELNETPP_EXPORT server : public telnetpp::options::basic_server<
telnetpp::options::echo::detail::option>
{
public:
constexpr explicit server(telnetpp::session &sess) noexcept
: basic_server(sess)
{
}
explicit server(telnetpp::session &sess) noexcept;
};

} // namespace telnetpp::options::echo
5 changes: 1 addition & 4 deletions include/telnetpp/options/suppress_ga/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ class TELNETPP_EXPORT client
telnetpp::options::suppress_ga::detail::option>
{
public:
constexpr explicit client(telnetpp::session &sess) noexcept
: basic_client(sess)
{
}
explicit client(telnetpp::session &sess) noexcept;
};

} // namespace telnetpp::options::suppress_ga
5 changes: 1 addition & 4 deletions include/telnetpp/options/suppress_ga/server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ class TELNETPP_EXPORT server
telnetpp::options::suppress_ga::detail::option>
{
public:
constexpr explicit server(telnetpp::session &sess) noexcept
: basic_server(sess)
{
}
explicit server(telnetpp::session &sess) noexcept;
};

} // namespace telnetpp::options::suppress_ga
9 changes: 9 additions & 0 deletions src/options/echo/client.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "telnetpp/options/echo/client.hpp"

namespace telnetpp::options::echo {

client::client(telnetpp::session &sess) noexcept : basic_client(sess)
{
}

} // namespace telnetpp::options::echo
9 changes: 9 additions & 0 deletions src/options/echo/server.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "telnetpp/options/echo/server.hpp"

namespace telnetpp::options::echo {

server::server(telnetpp::session &sess) noexcept : basic_server(sess)
{
}

} // namespace telnetpp::options::echo
9 changes: 9 additions & 0 deletions src/options/suppress_ga/client.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "telnetpp/options/suppress_ga/client.hpp"

namespace telnetpp::options::suppress_ga {

client::client(telnetpp::session &sess) noexcept : basic_client(sess)
{
}

} // namespace telnetpp::options::suppress_ga
9 changes: 9 additions & 0 deletions src/options/suppress_ga/server.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "telnetpp/options/suppress_ga/server.hpp"

namespace telnetpp::options::suppress_ga {

server::server(telnetpp::session &sess) noexcept : basic_server(sess)
{
}

} // namespace telnetpp::options::suppress_ga

0 comments on commit 97cb148

Please sign in to comment.