I have an application written with Java where I want to connect multiple streams to a single XBee RF link. The existing Java library looks like it is designed for a single stream received by a single listener.
What I want to do is implement something like TCP/IP which has ports. Adding a ports type feature would allow a output stream to be assigned to a port on one side of the RF link, while on the other side, a listener would be assigned to the same port number at the other end of the RF link.
Has anyone written the code to do this?