[
https://issues.apache.org/jira/browse/THRIFT-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733707#action_12733707
]
Rush Manbert commented on THRIFT-311:
-------------------------------------
I'll see what I can do about uploading a patch. I need to bring the Windows
code back and merge to the Mac in order to generate the patch, and I've got a
lot of meetings to attend during the next few days. The patch would have all
the code changes and the VS projects implemented, but not the configure script.
But you guys are all smart and should be able to deal with configuring the
Windows stuff by hand. It just requires editing a couple of property sheet
files to change paths.
As far as the interface, it exactly follows the Thrift interface. I have made
workalike parallel Asio-based classes (TAsioSocket, etc.) that act just like
the Thrift classes. For threading, I added Boost.thread as a configure option
on *nix. The only newness is that I added local sockets (windows named pipes or
Unix domain sockets) to the Asio-based classes. That's because the company I
work for needs them. So all the classes I have added are synchronous except for
TAsioNonblockingServer and TAsioLocalNonblockingServer.
> ASIO client & server
> --------------------
>
> Key: THRIFT-311
> URL: https://issues.apache.org/jira/browse/THRIFT-311
> Project: Thrift
> Issue Type: Sub-task
> Components: Library (C++)
> Reporter: Esteve Fernandez
> Attachments: thrift_connection.cpp, thrift_connection.hpp,
> thrift_connection_v2.cpp, thrift_handler.cpp, thrift_handler.hpp,
> thrift_main.cpp, thrift_server.cpp, thrift_server.hpp,
> ThriftCalculatorASIOServer.cpp
>
>
> Given the recent discussion on a Windows port and moving to ASIO
> (http://mail-archives.apache.org/mod_mbox/incubator-thrift-dev/200901.mbox/%[email protected]%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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.