[erlang-questions] client in erlang server in objective C
Sat Jul 14 18:56:09 CEST 2012
The best way to do this now is to use Grand Central Dispatch. Your
listening socket and the connected sockets are just a dispatch sources that
can call blocks on a queue when stuff happens. I believe there's a wrapper
for this on github called AsyncSocket that abstracts things a bit (on my
phone so I don't have all of my notes).
On Saturday, July 14, 2012, Joe Armstrong wrote:
> I want the following:
> - Client in erlang (easy)
> - Server in objective C (I'm thinking Mac OS-X lion - xcode 4.2 - cocoa)
> - socket communication
> [[ I'm a complete beginner with xcode/objective C ]]
> Has anybody written a simple objective C client that opens a port
> waits for a message then executes a callback. This should be non-blocking
> and be integrated with the "standard" dispatcher top-loop.
> I'm confused by the profusion of classes that almost do this.
> Has anybody implemented this, or have pointers to a good place to start.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions