- (void)getInterfaceAddress4:(NSMutableData **)interfaceAddr4Ptr
address6:(NSMutableData **)interfaceAddr6Ptr
fromDescription:(NSString *)interfaceDescription
port:(uint16_t)port
Can you see what's going on in that method for you? And if the proper address(es) are being returned.
> since this error and my use-case seem pretty trivial
I haven't encountered this problem before. Is this code running on Mac OS X or on iOS?
-Robbie Hanson
> --
> You received this message because you are subscribed to the Google Groups "CocoaAsyncSocket" group.
> To post to this group, send email to cocoaasy...@googlegroups.com.
> To unsubscribe from this group, send email to cocoaasyncsock...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cocoaasyncsocket?hl=en.
>
I am trying to do several advertisements at the same time and I just switched over to ARC.
I am going to create a new project and start simple until I can find the issue. Sounds like it should work, so it is up to me to track down my environmental issue.
If I get stuck with and can easily recreate it without all the baggage, I'll re-post the issue.
Thx.
Charlie
Charlie
I have been trying to connect two devices together (Iphone)by getting their ip addressees and port number.There will be a server but only for getting the ip addressees of the devices.There will be data exchange between devices.i have been searching over google but not able to find anything except this Wrapper.I am new to Xcode and programming.Can you tell which part of the code can help me.
Thanks In Advance
You should start by looking at the demo code included with the library.
Basically you use a nsnetservice to publish a service on the network and a nsnetservicebrowser to find it (from the other device). When the nsnetservicebrowser finds the service you resolve it, then use gcdasync (or udp) to connect to it. On the 'input' socket you listen (and read data) and on the 'output' socket you write data.
You should have basic knowledge of delegates and understanding of how sockets work.
Andrei
Sent from my iPhone