Why not use plain gen_tcp:accept() and then gen_server:enter_loop() ?
With an accept timout you can fall out and poll for mailbox messages and get back into trying to accept again, making it semi-active.
About prim_inet being safe to use, what I have picked up pretty clearly from OTP is that if-it-isnt-documented-it-should-not-be-depended-on.
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions