Celluloid::Pool in DCell ??

47 views
Skip to first unread message

Miguel Michelsongs

unread,
Jun 2, 2012, 6:31:16 AM6/2/12
to cellulo...@googlegroups.com
Hi
, i've been playin with Celluloid Dcell and Celluloid IO about two weeks, really great stuff!!

 i have implemented an OSC server over Cells'io UDPSocket to generate midi files with multitrack support
https://github.com/michelson/osc-celluloid , (and a osc base server in the "osc_base" branch ).

i just wondering if its possible to use Celluloid::Pool or other setting that enables to run many instances of the server ?

regards!

Tony Arcieri

unread,
Jun 5, 2012, 12:12:37 PM6/5/12
to cellulo...@googlegroups.com
Hi there,

There's no longer a Celluloid::Pool ;) It's been replaced with Celluloid.pool

There's not really an analogue in DCell yet... coming soon!
--
Tony Arcieri

Miguel Michelsongs

unread,
Jun 5, 2012, 12:23:48 PM6/5/12
to cellulo...@googlegroups.com
Hi , Tony! thanks for your reply.

so if i want to start two process of the same TCP server should i do ?

DCell.start :addr => "8083", :id => "id-#{port}",  ....

supervisor1 = Server.supervise_as(:messages, "0.0.0.0", 8080)
supervisor2 = Server.supervise_as(:messages, "0.0.0.0", 8081)
DCell::Global[:messages] = [supervisor1.actor, supervisor2.actor]


is this possible ?

regards


Atte.
Miguel Michelson Martinez
www.artenlinea.com

Tony Arcieri

unread,
Jun 5, 2012, 12:27:02 PM6/5/12
to cellulo...@googlegroups.com
There's nothing like that yet, sorry. You'd have to register them both under separate names
--
Tony Arcieri

Miguel Michelsongs

unread,
Jun 5, 2012, 12:35:39 PM6/5/12
to cellulo...@googlegroups.com

so it should be something like this ?


supervisor1 = Server.supervise_as(:messages, "0.0.0.0", 8080)
supervisor2 = Server.supervise_as(:messages, "0.0.0.0", 8081)
DCell::Global[:messages_1] = supervisor1.actor
DCell::Global[:messages_2] = supervisor2.actor

Thanks for your help, Tony
Reply all
Reply to author
Forward
0 new messages