GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cc_tutorial/tutorials/tutorial24/src/ServerSession.h at master · commschamp/cc_tutorial Expand file tree/ Copy pathServerSession.hMore file actions 53 lines (41 loc) · 1.56 KB / Copy pathServerSession.hFile metadata and controls53 lines (41 loc) · 1.56 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 #pragma once #include "comms/GenericMessage.h" #include "tutorial24/Message.h" #include "tutorial24/frame/Frame.h" #include "tutorial24/input/ServerInputMessages.h" #include "tutorial24/options/ServerDefaultOptions.h" #include "Session.h" namespace cc_tutorial { class ServerSession : public Session { using Base = Session; public: using Base::Base; // Inherit constructors // Common interface class for all the messages using Message = tutorial24::Message< comms::option::app::ReadIterator<const std::uint8_t*>, // Polymorphic read comms::option::app::WriteIterator<std::uint8_t*>, // Polymorphic write comms::option::app::LengthInfoInterface, // Polymorphic length calculation comms::option::app::IdInfoInterface, // Polymorphic message ID retrieval comms::option::app::NameInterface, // Polymorphic name retrieval comms::option::app::Handler<ServerSession> // Polymorphic dispatch >; using ServerProtocolOptions = tutorial24::options::ServerDefaultOptions; // Handle all the received messages void handle(Message& msg); protected: virtual std::size_t processInputImpl(const std::uint8_t* buf, std::size_t bufLen) override final; private: // Server specific frame using Frame = tutorial24::frame::Frame< Message, tutorial24::input::ServerInputMessages<Message, ServerProtocolOptions>, ServerProtocolOptions >; void sendMessage(const Message& msg); Frame m_frame; }; } // namespace cc_tutorial |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |