FROM : Hamish Allan
DATE : Fri Aug 01 22:52:55 2008
On Fri, Aug 1, 2008 at 1:02 AM, Chris Suter <<email_removed>> wrote:
> The reason you're seeing the error is because as soon as you receive the
> response in your client, you're printing it and terminating the application
> but the server is expecting a response (even though the method has a void
> return value).
Ah, of course. Many thanks!
> To fix it, add the oneway qualifier to your setAnswerText: method.
> I think it would also be prudent to make sure that the client shuts down
> gracefully, i.e. call [connection invalidate] at least.
> You might want to go through your other methods and consider whether the
> oneway qualifier should apply. You could do the same for "bycopy".
Will do. Thanks again!
Hamish
DATE : Fri Aug 01 22:52:55 2008
On Fri, Aug 1, 2008 at 1:02 AM, Chris Suter <<email_removed>> wrote:
> The reason you're seeing the error is because as soon as you receive the
> response in your client, you're printing it and terminating the application
> but the server is expecting a response (even though the method has a void
> return value).
Ah, of course. Many thanks!
> To fix it, add the oneway qualifier to your setAnswerText: method.
> I think it would also be prudent to make sure that the client shuts down
> gracefully, i.e. call [connection invalidate] at least.
> You might want to go through your other methods and consider whether the
> oneway qualifier should apply. You could do the same for "bycopy".
Will do. Thanks again!
Hamish






Cocoa mail archive

