On Jan 16, 2008 6:42 AM, skrasnigor <[EMAIL PROTECTED]> wrote: > > I am currently using Mina in a simple client/server application using UDP (a > requirement by the external asset we communicate with). For the next > iteration of our application we need to handle communications with multiple > assets instead of one. I am trying to figure out how best to handle this. > One idea I am toying with, but not sure it is feasable, is having a master > server that is listening on all ports. When an external asset sends data to > our server over a port of their choice, I would create a new client/server > pair that would service the external asset over the port that the message > arrived on. Comms would then proceed with this client/server pair until > comms are no longer needed with the asset and the pair is terminated. If > this sounds doable (or makes sense), how best would this be accomplished > with Mina? Any guidance would be appreciated. Thanks.
Yes you can. Just call bind method with different bind addresses multiple times and that's all. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
