Eventmachine parameters to post_init

L

Leslie Viljoen

Hi!

I have a module which EventMachine mixes in to implement a UDP server.
In this case the module's post_init method is called when someone
connects and takes the place of a constructor, but how can I pass
parameters to post_init?

I have a configuration object that I want to share among all of my
server instances, how do I accomplish that without making a global
variable?

Les
 
L

Leslie Viljoen

Hi!

I have a module which EventMachine mixes in to implement a UDP server.
In this case the module's post_init method is called when someone
connects and takes the place of a constructor, but how can I pass
parameters to post_init?

I have a configuration object that I want to share among all of my
server instances, how do I accomplish that without making a global
variable?

Nevermind, I see you can get EventMachine to make use of a class
instead of a Module for new server instances. I'll use that facility.

Les
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,665
Latest member
salkete

Latest Threads

Top