You have UDP port which recieves data.
You have TCP listener which accepts client connections.
Once you have a client connection you want to send some or all of the data from the UDP port to those clients (it doesn't matter whether it is some or all as that is a different problem.)
Solution to the above.
1. Create a thread safe pipe which allows for a single input and allows for multiple readers. This has NOTHING to do with UPD nor TCP.
2. Test it.
3. Test it again using threads.
1. Creaet a UPD port
2. Set up the UPD port to write messages (data collected from port into something meaningful) to the pipe.
3. Test this. Note that this has NOTHING to do with TCP.
1. Create a TCP listener
2. For each listener request hook up as a reader to the pipe.
3. Test this. Note that this has NOTHING to do with UDP.
I will look after a few days on the developement of an application jee a little big but I decided to devote one week prior to document more about IDEs and frameworks
then after my little research, I found netbeans for me the most because I like it more than eclipse and I will rely on the tutorial application full e-commerce to the doc netbeans to make my application,
but on the use of framework, I have not a clue what to do
is that because this is the first application I must not do all even if it is large
or I have to use because it facilitates the work
what do you advise me
and if I have to use them: to which you can direct me: JSF, Spring, Struct ......
You can use Eclipse RCP as a framework for your application. It is working fine and also pretty well documented. The Framework provides a lot of features that one otherwise has to develop oneself.
You have to develop under Eclipse, but that is anyway the most common used IDE. With a little experience you'll begin to love it because it's so simple and structured.
Java EE spread in a wide range, like JSF, JSP, Spring, etc... So its all depend on what you really want to do. My advice is take the only tutorial and work on with that. With the time you can have a better understanding about the subject matter.
Don't stick with one IDE. Each and every has there own advantages and disadvantages. In almost all the IDEs you can easily attach the Java DOC and refer any time you want.
Using JDK 1.6 with the Cryptix encryption libs, I get this error: Error:java.lang.RuntimeException: NYI. I've updated the Security jars with many different version, but still get the same error. Suggestions please?
I am asking this question because I recently installed and then uninstalled eclipse IDE because it put me under lots of troubles for java whereas NetBeans is running quite smoothly with lots of support.There are lots of problems with JDBC driver with Eclipse (as far as I know) and no search engine even their own FAQ's don't provide the exact solution
Always believe in God and never let misfortunes make you give up
Last Visit: 31-Dec-99 19:00 Last Update: 30-Mar-15 0:43