Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++ - Library
    • None
    • Patch Available

    Description

      Given the recent discussion on a Windows port and moving to ASIO (http://mail-archives.apache.org/mod_mbox/incubator-thrift-dev/200901.mbox/%3C03D5F82D-574D-418B-A409-C521227888A9@manbert.com%3E), I decided to hack a little Thrift asynchronous prototype server using ASIO and here's the result. It implements the Calculator service that can be found in the tutorial and, just like TNonblockingServer, it uses a FramedTransport.

      It's just a quick prototype, but I think it's enough for building a more generic server/protocol. I've only tested it in Linux, but I think there's nothing platform-dependent and can be compiled "as is" in Windows.

      Attachments

        1. thrift_connection_v2.cpp
          3 kB
          Esteve Fernandez
        2. thrift_connection.cpp
          3 kB
          Esteve Fernandez
        3. thrift_connection.hpp
          2 kB
          Esteve Fernandez
        4. thrift_handler.cpp
          1 kB
          Esteve Fernandez
        5. thrift_handler.hpp
          0.5 kB
          Esteve Fernandez
        6. thrift_main.cpp
          2 kB
          Esteve Fernandez
        7. thrift_server.cpp
          2 kB
          Esteve Fernandez
        8. thrift_server.hpp
          2 kB
          Esteve Fernandez
        9. ThriftCalculatorASIOServer.cpp
          8 kB
          Esteve Fernandez

        Issue Links

          Activity

            People

              Unassigned Unassigned
              esteve Esteve Fernandez
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: