[ 
https://issues.apache.org/jira/browse/THRIFT-3706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15181348#comment-15181348
 ] 

ASF GitHub Bot commented on THRIFT-3706:
----------------------------------------

GitHub user gadLinux opened a pull request:

    https://github.com/apache/thrift/pull/921

    THRIFT-3706 : Implement protocol multiplexor in c_glib

    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/921.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 #921
    
----
commit b02c04273338c70f89765664a816b334f22159af
Author: Gonzalo Aguilar Delgado <[email protected]>
Date:   2016-03-04T12:16:22Z

    Implement multiplexed protocol

commit 2bb338c6e96abdc0bf0020e83ad7b1e76f29d43e
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)

Reply via email to