LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Problems with java sending DatagramPacket to DatagramSocket in li nux

[ILUG] Problems with java sending DatagramPacket to DatagramSocket in li nux

Lennon, Conor clennon at accuris.ie
Thu May 3 12:13:55 IST 2001


Hi,
I have a java programme that sends a DatagramPacket to a DatagramSocket.  It
works grand on WinNT, but on Linux the send function throws an IO Exception.

The code that creates the DatagramPacket and sends the packet is:

     DatagramPacket listPacket = new DatagramPacket(
                        listCommand.getBytes(), listCommand.length(),
                        destIPAddress, udpPort);

     udpSocket.send(listPacket);

listPacket is created successfully is valid
udpSocket is an open udpSocket

I have tried with the Sun jdk1.2 and jdk1.3, IBM java 1.3 and the latest
version of blackdown java.  All generate the same exception.

Has anybody come across this before?
Is there some option in the Linux kernel that I need to set?

Conor
 




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell