robbiehanson/CocoaAsyncSocket — Issue #17: Is CocoaAsyncSocket ported to iOS5 (ARC)
Author: mindrones
Created: 2012-01-18 15:37:10+00:00
State: open

Hi,

I've tested CocoaAsyncSocket on a iOS4 project and worked well so far.

But then I wanted to use it in a ARC project, and of course it complained.
I've tried to remove all the release/retains/autorelease/dealloc/etc calls and after that I've let xcode port it to arc, it seemed with success.
But then it crashes badly on doSend when passing the msg, which is NSData as it should be I think.

At the line:
const void *buffer = [currentSend->buffer bytes];
in GCDAsyncUdpSocket.m (in doSend)
it seems "buffer" is empty.

Any chances to help me shed some light on this (I'm not a objective-super-guru :/ )

Is there a port to ARC somewhere?

Thanks!
Luca