case @chunked_data
when /^330/
# and send the session_id as response
# with 333 as the response code
p "Going to restart the channel"
session_id = Guid.new.hexdigest.to_s
# following code is for starting server at another port, but
current class holds
# reference to the Class that was instantiated to handle the
request at newly started
# IP and Port. Current implementation would throw error, if
second client connects
EventMachine::start_server(@tick_channel_ip, at
tick_channel_port,DummyTickChannel)
do|conn|
p "Channel starting"
conn.session_id = session_id
@tick_channel = conn
end
depending upon the incoming request from the current client
connected...i want another server to be started at specified port.
Now..the problem is...for first client this would work perfectly...but
when another client connects it would fail because second server would
have been already started.
Now this is not a problem with EventMachine, but I what is...whenever
another client connects...I want that block to gets executed. Is it
possible?
--
There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.