[
https://issues.apache.org/jira/browse/THRIFT-3706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182092#comment-15182092
]
ASF GitHub Bot commented on THRIFT-3706:
----------------------------------------
GitHub user gadLinux opened a pull request:
https://github.com/apache/thrift/pull/927
THRIFT-3706 : Implement protocol multiplexor in c_glib [Rebased Master]
This patch implements protocol multiplexor for the client. For the server
there's a need for a processor that currently we don't have. So a test of this
can only be tested against other language that already has this in place. We
did testing against Java.
Example of use:
/*
We will use binary encoding
*/
ThriftBinaryProtocol *binary_protocol= g_object_new
(THRIFT_TYPE_BINARY_PROTOCOL,
"transport", manager->transport,
NULL);
/*
FIXME Transport in the multiplexed should be got from binary_protocol
*/
ThriftMultiplexedProtocol *multiplexed_protocol= g_object_new
(THRIFT_TYPE_MULTIPLEXED_PROTOCOL,
"transport", manager->transport,
"protocol", binary_protocol,
"service-name", "MyService",
NULL);
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gadLinux/thrift thrift-3706
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/927.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #927
----
commit a73022a5496122a7f3bd20b9c15ab699852f5239
Author: Gonzalo Aguilar Delgado <[email protected]>
Date: 2016-03-04T12:16:22Z
Implement multiplexed protocol
commit a5a6ef17af5ff10187ed926956a30155635203c0
Author: Gonzalo Aguilar Delgado <[email protected]>
Date: 2016-03-05T00:21:27Z
Implement protocol multiplexor. For me there are a pair of things missing.
Implement protocol decorator.
----
> There's no support for Multiplexed protocol on c_glib library
> -------------------------------------------------------------
>
> Key: THRIFT-3706
> URL: https://issues.apache.org/jira/browse/THRIFT-3706
> Project: Thrift
> Issue Type: Improvement
> Components: C glib - Library
> Affects Versions: 0.9.3
> Reporter: Gonzalo Aguilar
> Assignee: Gonzalo Aguilar
> Fix For: 0.10.0
>
>
> There's no multiplexed protocol.
> I will implement the same way it's done in Java an C++
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)