How to use CocoaAsyncSocket library in order to run client on MAC and iOS server side over USB?

292 views
Skip to first unread message

Maxim Shoustin

unread,
Mar 31, 2014, 9:22:59 AM3/31/14
to cocoaasy...@googlegroups.com
Hello,

I wonder if I can use CocoaAsyncSocket project for followed test case:
 - iOS runs server side and listens on socket for incoming data
 - MAC (OSX) is client side and sends request to iOS. After, server returns response.
 - The socket binding should be over USB cable.

In basic words I write automation for iOS.

For Android above mentioned flow works fine. I used TCP port forwarding.

Thank you for help,

Maxim Shoustin


Arno Gramatke

unread,
Mar 31, 2014, 10:53:21 AM3/31/14
to cocoaasy...@googlegroups.com
Creating a server socket on iOS with GCDAsyncSocket is no problem. Mac OS X side, too.

The third part („The socket binding should be done over USB cable") is not easy to do on the iPhone. I never tried this myself, but you can take a look at http://www.libimobiledevice.org and check for TCP tunneling respectively usbmuxd.

--
You received this message because you are subscribed to the Google Groups "CocoaAsyncSocket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoaasyncsock...@googlegroups.com.
To post to this group, send email to cocoaasy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoaasyncsocket/61d28e34-79d6-4dfa-8032-22d9dff35b6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Maxim Shoustin

unread,
Mar 31, 2014, 11:06:19 AM3/31/14
to cocoaasy...@googlegroups.com
Thank you. Ill check it out and post answer if it works.  
Reply all
Reply to author
Forward
0 new messages