[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16123324#comment-16123324 ] ASF GitHub Bot commented on THRIFT-3859: Github user gaoshanyu commented on the issue: https://github.com/apache/thrift/pull/1031 Who can tell me why the cocoa lib has Swift2.3 codes? Where I can download full Objective-C lib? Or is there a way to make the lib to support Swift 3 +? > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Assignee: James E. King, III >Priority: Minor > Fix For: 0.11.0 > > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15952952#comment-15952952 ] ASF GitHub Bot commented on THRIFT-3859: Github user asfgit closed the pull request at: https://github.com/apache/thrift/pull/1031 > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15952928#comment-15952928 ] ASF GitHub Bot commented on THRIFT-3859: Github user jeking3 commented on the issue: https://github.com/apache/thrift/pull/1031 Okay, well I'm going to approve and merge, and open a Jira item to add crosstest support for cocoa (if not there, I'll check) and for unix sockets in cocoa. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15952881#comment-15952881 ] ASF GitHub Bot commented on THRIFT-3859: Github user clindsay commented on the issue: https://github.com/apache/thrift/pull/1031 I've been using it in a project since last summer, communicating between a python process and a Swift/Objective-C process. The project has been in beta with a few hundred users, and no reports of any issues attributable to this yet. I've also written a set of unit tests, testing the behavior of a server and client in the same process both using this transport, that are all passing. So yes, it's definitely at least working in these two scenarios. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15952248#comment-15952248 ] ASF GitHub Bot commented on THRIFT-3859: Github user jeking3 commented on the issue: https://github.com/apache/thrift/pull/1031 Have you used this in a project and know that it works? Given this is an improvement I'd like to get it in, but if you don't have time right now to add make cross support, I can add a story in Jira to complete the work. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15951676#comment-15951676 ] ASF GitHub Bot commented on THRIFT-3859: Github user clindsay commented on the issue: https://github.com/apache/thrift/pull/1031 Hey @jeking3, sorry for going silent there. I've had a lot of other things on my plate, and haven't gotten to this yet, but I still intend to add this support when I have a chance! > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15949888#comment-15949888 ] ASF GitHub Bot commented on THRIFT-3859: Github user jeking3 commented on the issue: https://github.com/apache/thrift/pull/1031 Hi @clindsay just checking in to see if you had made any progress on adding cross test support for cocoa. If not that's okay... it would be really nice to have it though. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15871014#comment-15871014 ] ASF GitHub Bot commented on THRIFT-3859: Github user jeking3 commented on the issue: https://github.com/apache/thrift/pull/1031 If there isn't one there yet I would recommend following the pattern for java in there. Specifically you would need a new test/ subdirectory for cocoa with test_client and test_server scripts, and you would need a stanza in tests.json that the test.py script could run. You can test your scripts against a single client or server like this, after running a "make" following configure in test/: ./test.py --client cocoa --server java ./test.py --client java --server cocoa You could substitute cpp for java as well. Then when those pass, try a "make cross" to see if everything passes. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15864860#comment-15864860 ] ASF GitHub Bot commented on THRIFT-3859: Github user jeking3 commented on the issue: https://github.com/apache/thrift/pull/1031 To enable "make cross" support you can follow the pattern in test/tests.json to add the "domain" transport to your cocoa test. Your cocoa test_client needs to understand that transport and create the correct kind of client, etc. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15853421#comment-15853421 ] ASF GitHub Bot commented on THRIFT-3859: Github user clindsay commented on the issue: https://github.com/apache/thrift/pull/1031 No problem. Just rebased on master. I will work on adding to the "make cross" test. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15852623#comment-15852623 ] ASF GitHub Bot commented on THRIFT-3859: Github user jeking3 commented on the issue: https://github.com/apache/thrift/pull/1031 Would it be possible to rebase this on master so we can get a clean CI build? Also enabling unix socket transport in the "make cross" test would be really nice to validate this code. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15343097#comment-15343097 ] ASF GitHub Bot commented on THRIFT-3859: Github user clindsay commented on the issue: https://github.com/apache/thrift/pull/1031 The diff generated by GitHub makes the change look a little bigger than it actually is. In TSocketServer.m, the `initWithSocket` method is effectively the same as the old `initWithPort` method, but with the socket creation code factored out into `createSocketWithPort`. Additional code has been added to create a socket using a path instead of a port. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15343093#comment-15343093 ] ASF GitHub Bot commented on THRIFT-3859: Github user clindsay commented on the issue: https://github.com/apache/thrift/pull/1031 I have written unit tests for this change, but am not sure where to contribute them. I see no "cocoa" directory under the "test" directory. Is there another place where I can contribute my unit tests? > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (THRIFT-3859) Unix Domain Socket Support in Objective-C
[ https://issues.apache.org/jira/browse/THRIFT-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15343091#comment-15343091 ] ASF GitHub Bot commented on THRIFT-3859: GitHub user clindsay opened a pull request: https://github.com/apache/thrift/pull/1031 THRIFT-3859: Add support for Unix Domain Sockets to TSocketServer and TSocketTransport Existing behavior for port-based socket transport should be unchanged by this commit. TSocketServer and TSocketTransport have been refactored to support sockets created using either a port or a path. You can merge this pull request into a Git repository by running: $ git pull https://github.com/clindsay/thrift thrift-3859 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/1031.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 #1031 commit 291a05a0ce62f9eb4351e7f61f7d051223e37cba Author: Chris VasselliDate: 2016-06-21T23:45:39Z THRIFT-3859: Add support for Unix Domain Sockets to TSocketServer and TSocketTransport. Existing behavior for port-based socket transport should be unchanged by this commit. TSocketServer and TSocketTransport have been refactored to support sockets created using either a port or a path. > Unix Domain Socket Support in Objective-C > - > > Key: THRIFT-3859 > URL: https://issues.apache.org/jira/browse/THRIFT-3859 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Library >Affects Versions: 0.10.0 >Reporter: Chris Vasselli >Priority: Minor > > I would like to be able to use Unix Domain Sockets as the transport to > communicate between different processes on a single machine. There seems to > be support in the C++ and Python libraries (the two other languages used in > my project), but no support in Objective-C. > Proposed server interface: > {{TSocketServer *server = [[TSocketServer alloc] > initWithPath:@"/path/to/pipe" protocolFactory:protocolFactory > processorFactory:processorFactory];}} > Proposed client interface: > {{TSocketTransport *socket = [[TSocketTransport alloc] > initWithPath:@"/path/to/pipe"];}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)