thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew McGeachie <geechor...@gmail.com>
Subject Re: Cocoa Client
Date Fri, 27 Jun 2008 00:50:30 GMT
Hey Pat.  Looking at the server side, do you see any evidence of the  
connection attempt from the Cocoa client?

- a

On Jun 26, 2008, at 11:10 AM, Pat Mao wrote:

> Bare with me as I'm completely new to Objective-C...  We have our  
> Thrift
> server written in Ruby, but we need to make a Cocoa client to it.  I  
> was
> looking for a tutorial for one but didn't see one.  I'm pretty sure  
> I'm
> creating the client connection correctly, but once I call one of it's
> services I get a "TTransportException: Cannot read. Remote side has  
> closed."
>
> Here's what I have:
>
> TSocketClient * transport = [[TSocketClient alloc]
> initWithHostname:@"myHostname"
> port:9090];
> TBinaryProtocol * protocol = [[TBinaryProtocol alloc]
> initWithTransport:transport];
> MyClient * client = [[MyClient alloc] initWithProtocol:protocol];
> NSArray * types = [client getObjectTypes];
>
> I get the exception on the last line.  Any help is greatly  
> appreciated.
>
> Thanks,
> Pat


Mime
View raw message