XML Feeds

.

[java-dev] Re: UdpSender not ready to send

Peter Castine pcastine at gmx.net
Thu Feb 7 02:42:37 MST 2008


Looking at your code, I would think you need to instantiate your UdpSender with the UdpSender(address, port) signature. Instantiating the object with a void signature just creates an empty object that doesn't know where to send data to. In that situation, 'not ready to send' makes a lot of sense.

You may or may not find the code I posted in my recent Java threads helpful. It's a similar project in that I'm taking Jitter Matrices and sending them over IP. It's different in that we're using TCP and that the receiving hardware doesn't know or care what a Jitter Matrix is, so I have to convert to a different data structure. The main thing is it has the same issue that it needs to wait for address & port attributes to be set before it can do any real work.

HtH,
Peter


--
----
Peter Castine
Next Concert: Fri. 8 Feb, 2008
Oscar Peterson Concert Hall, Concordia University, Montréal, QC, CA
"The Door: Theme, Lines, Canon"
--please check with venue for time



More information about the java-dev mailing list