[erlang-questions] client in erlang server in objective C

Bob Ippolito <>
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.
>
> Cheers
>
> /Joe
> _______________________________________________
> erlang-questions mailing list
>  <javascript:;>
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120714/f98dd65e/attachment.html>


More information about the erlang-questions mailing list