Andrew,
Using tcpdump on the server, I can see packets going back and forth between
the server and client.
To go into more detail, in my thrift generated .m file the function I'm
calling is just:
- (NSArray *) getObjectTypes
{
[self send_getObjectTypes];
return [self recv_getObjectTypes];
}
The exception occurs in "recv_getObjectTypes" when calling:
[inProtocol readMessageBeginReturningName: nil type: &msgType sequenceID:
NULL];
-Pat
On Thu, Jun 26, 2008 at 8:50 PM, Andrew McGeachie <[EMAIL PROTECTED]>
wrote:
> 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
>>
>
>