On Sun, Sep 9, 2012 at 7:54 PM, Normando Hall <[email protected]> wrote: > Hi there. > > I am really new on node. > > I am designing a multi company system. Each company send and receive a GPRS > packet on an UDP port to comunicate with external devices. > I want to use one port per company, so for instance: > > Company A > Socket server listen on port UDP 5000 > Socket client sends on port UDP 5001 > > Company B > Socket server listen on port UDP 5002 > Socket client sends on port UDP 5003 > > The main purpose for this schema is identify for what company belongs the > packets are send and receive. Of course, I can add a field into the data > send from external devices and routing these, but I think this take more > process than separating the ports. > > It is posible to do it?
Yes. Just bind() each socket to a different port. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
