You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Evgeni Petrov <ev...@gmail.com> on 2011/10/11 17:01:10 UTC

[iOS] Is TSocketServer working?

Hello everyone,

I was fiddling with Thrift, evaluating the possibility of replacing network code we have with ProtoBufs.
The code connects iOS app with Silverlight app, we seem to have everything correctly but the TSocketServer never accepts connection. We checked with another socket code (http://deusty.blogspot.com/2010/11/introducing-gcd-based-asyncsocket.html) and we received connection and read data (for the RPC call). 

So in short is TSocketServer  working on iOS? 

Evgeni

Re: [iOS] Is TSocketServer working?

Posted by Paul Mans <pa...@gmail.com>.
Yeah, I can confirm TSocketServer does work on iOS.  In case it helps, here
are a few relevant lines of code from an app where it is instantiated:


    VideoSubscriptionProcessor *videoProcessor = [[
VideoSubscriptionProcessor alloc] initWithVideoSubscription:self];

    TSharedProcessorFactory *processorFactory = [[TSharedProcessorFactory
alloc] initWithSharedProcessor:videoProcessor];

    TSocketServer *socketServer = [[TSocketServer alloc] initWithPort:9095
protocolFactory:[TBinaryProtocolFactory sharedFactory] processorFactory
:processorFactory];

Paul

On Tue, Oct 11, 2011 at 8:01 AM, Evgeni Petrov <ev...@gmail.com>wrote:

> Hello everyone,
>
> I was fiddling with Thrift, evaluating the possibility of replacing network
> code we have with ProtoBufs.
> The code connects iOS app with Silverlight app, we seem to have everything
> correctly but the TSocketServer never accepts connection. We checked with
> another socket code (
> http://deusty.blogspot.com/2010/11/introducing-gcd-based-asyncsocket.html)
> and we received connection and read data (for the RPC call).
>
> So in short is TSocketServer  working on iOS?
>
> Evgeni