Click here to Skip to main content
16,011,508 members
Home / Discussions / Java
   

Java

 
GeneralRe: to open an excel file and write Pin
Richard MacCutchan1-Jul-12 22:05
mveRichard MacCutchan1-Jul-12 22:05 
QuestionTesting in Mockito Pin
Chris_B8426-Jun-12 22:45
Chris_B8426-Jun-12 22:45 
AnswerRe: Testing in Mockito Pin
CodingLover2-Jul-12 15:56
CodingLover2-Jul-12 15:56 
Questionproblem in handling multithreading java Pin
praveen260924-Jun-12 20:16
praveen260924-Jun-12 20:16 
QuestionRe: problem in handling multithreading java Pin
Richard MacCutchan24-Jun-12 22:52
mveRichard MacCutchan24-Jun-12 22:52 
GeneralRe: problem in handling multithreading java Pin
praveen260924-Jun-12 22:58
praveen260924-Jun-12 22:58 
QuestionRe: problem in handling multithreading java Pin
Richard MacCutchan24-Jun-12 23:22
mveRichard MacCutchan24-Jun-12 23:22 
AnswerRe: problem in handling multithreading java Pin
jschell25-Jun-12 9:55
jschell25-Jun-12 9:55 
It appears that you have the following system.

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.

Part 1.
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.

Part 2
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.

Part 3
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.

Part 4
1. Put parts 2 and 3 together.
2. Test it.
Questionusing framework in java EE Pin
ahmadiss23-Jun-12 12:49
ahmadiss23-Jun-12 12:49 
AnswerRe: using framework in java EE Pin
TorstenH.24-Jun-12 21:01
TorstenH.24-Jun-12 21:01 
AnswerRe: using framework in java EE Pin
CodingLover2-Jul-12 16:01
CodingLover2-Jul-12 16:01 
AnswerRe: using framework in java EE Pin
CodingLover2-Jul-12 16:03
CodingLover2-Jul-12 16:03 
QuestionJava Cryptix Encryption NYI Error Pin
Allan Larson22-Jun-12 3:43
Allan Larson22-Jun-12 3:43 
AnswerRe: Java Cryptix Encryption NYI Error Pin
Richard MacCutchan22-Jun-12 22:33
mveRichard MacCutchan22-Jun-12 22:33 
AnswerRe: Java Cryptix Encryption NYI Error Pin
Bernhard Hiller24-Jun-12 23:43
Bernhard Hiller24-Jun-12 23:43 
QuestionIs NetBeans 7.2.1 better than Eclipse Pin
adeelgr8one22-Jun-12 3:36
adeelgr8one22-Jun-12 3:36 
AnswerRe: Is NetBeans 7.2.1 better than Eclipse Pin
Nagy Vilmos22-Jun-12 3:38
professionalNagy Vilmos22-Jun-12 3:38 
AnswerRe: Is NetBeans 7.2.1 better than Eclipse Pin
Richard MacCutchan22-Jun-12 22:32
mveRichard MacCutchan22-Jun-12 22:32 
GeneralRe: Is NetBeans 7.2.1 better than Eclipse Pin
TorstenH.24-Jun-12 21:08
TorstenH.24-Jun-12 21:08 
AnswerRe: Is NetBeans 7.2.1 better than Eclipse Pin
Anil Kumar 2325-Jun-12 19:15
Anil Kumar 2325-Jun-12 19:15 
QuestionRich Faces component memory leak issue. Pin
Nanda_MR18-Jun-12 22:08
Nanda_MR18-Jun-12 22:08 
AnswerRe: Rich Faces component memory leak issue. Pin
TorstenH.19-Jun-12 1:38
TorstenH.19-Jun-12 1:38 
GeneralRe: Rich Faces component memory leak issue. Pin
Nanda_MR19-Jun-12 2:27
Nanda_MR19-Jun-12 2:27 
GeneralRe: Rich Faces component memory leak issue. Pin
TorstenH.19-Jun-12 19:11
TorstenH.19-Jun-12 19:11 
QuestionHow can i add the namepsace into an existing xml Pin
piticcotoc17-Jun-12 23:23
piticcotoc17-Jun-12 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.