ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/XMLReader/UDPReader.java
Revision 1.9 - (view) (annotate) - [select for diffs]
Tue Nov 21 10:27:24 2000 UTC (24 years ago) by pjm2
Branch: MAIN
CVS Tags: HEAD, PROJECT_COMPLETION
Changes since 1.8: +5 -0 lines
Diff to previous 1.8 , to selected 1.2
Added a method to allow the UDPReader to handle XML Strings from other
UDPReaders.

Revision 1.8 - (view) (annotate) - [select for diffs]
Tue Nov 21 10:11:21 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.7: +5 -6 lines
Diff to previous 1.7 , to selected 1.2
Added logging features.

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue Nov 21 09:38:27 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 , to selected 1.2
Placed the creating of a UDPReaderThread back into the main loop.

Revision 1.6 - (view) (annotate) - [select for diffs]
Tue Nov 21 09:15:06 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.5: +25 -18 lines
Diff to previous 1.5 , to selected 1.2
Modified the UDPReader class to accept a Logger and port number as a
constructor argument (as opposed to command line parameters).

The main method has been replaced with a run() method so that the gubbins
of this program can be run as a thread from a Filter class.

Revision 1.5 - (view) (annotate) - [select for diffs]
Mon Nov 20 09:28:18 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.4: +0 -1 lines
Diff to previous 1.4 , to selected 1.2
Removed the System.gc(); - no need for explicit GC.

Revision 1.4 - (view) (annotate) - [select for diffs]
Fri Nov 17 20:44:31 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.3: +6 -3 lines
Diff to previous 1.3 , to selected 1.2
UDPReader and UDPReaderThread have been altered to prevent
a serious problem whereby the system ran out of free memory
after a certain amount of UDP packets had been received.

Testing with XMLSender2 has revealed that this problem has
been solved.  There is now little chance of the UDPReader
rejecting packets as it queues each arrival straight to the
UDPReaderThread, thus making "event storms" managable.  In
fact, the queuing nature may even assist in quenching such
problems.

Revision 1.3 - (view) (annotate) - [select for diffs]
Fri Nov 17 15:25:48 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.2: +10 -1 lines
Diff to previous 1.2
Wrapped the DatagramSocket part in a try { } so that a warning is given
when some other process is already listening on the same port.

Revision 1.2 - (view) (annotate) - [selected]
Fri Nov 17 12:16:39 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.1: +30 -11 lines
Diff to previous 1.1
Changed a lot of parts of UDPReader, UDPReaderThread, XMLPacketMaker,
XMLPacketParser and XMLSender so that they all work together.  XMLSender
is just a summy program to send UDP data to the UDPReader.

Revision 1.1 - (view) (annotate) - [select for diffs]
Fri Nov 17 11:23:19 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Diff to selected 1.2
The UDPReader class contains a main method for running on a machine to
accept the UDP XML data coming in.  Once it receives something, it passes
it on to a separate UDPReaderThread class to try and prevent the loss of
packets.

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a