Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA10120; Fri, 1 Dec 95 05:31:42 EST
Received: from liquor.cabi.net by MIT.EDU with SMTP
	id AA24473; Fri, 1 Dec 95 05:30:40 EST
Received: (from listadm@localhost) by liquor.cabi.net (8.6.12/8.6.12) id FAA04753; Fri, 1 Dec 1995 05:15:03 -0500
Resent-Date: Fri, 1 Dec 1995 05:15:03 -0500
From: Anders Kristensen <ak@hplb.hpl.hp.com>
Message-Id: <199512011026.AA070223568@rabbit.hpl.hp.com>
Subject: Re: sun.net.* classes broken in Linux port of JDK?
To: boutell@boutell.com, java-linux@java.blackdown.org
Date: Fri, 1 Dec 95 10:26:07 GMT
In-Reply-To: <199511292030.AA11624@boutell.com>; from "Thomas Boutell" at Nov 29, 95 12:30 (noon)
Mailer: Elm [revision: 70.85]
Resent-Message-Id: <"y3fdd1.0.X91.fKjlm"@liquor>
Resent-From: java-linux@java.blackdown.org
X-Mailing-List: <java-linux@java.blackdown.org> archive/latest/588
X-Loop: java-linux@java.blackdown.org
Precedence: list
Resent-Sender: java-linux-request@java.blackdown.org

> 
> Are the sun.net.* classes broken in the Linux port of 
> the JDK?
> 
> The following demo was sent to me by one of the
> engineers at Sun. 
> 
> To test it, save this to the file "demo.java" and do
> "javac demo.java". Then do "java DatagramServer &" and
> "java DatagramClient localhost port#" where port# should
> be the port number DatagramServer announced on startup.
> 
> When I run this, I get no errors, but the server never
> reports having received a datagram and thus never exits.
> 

Someone else asked a similar question on the pthreads mailing list
recently, and the answer was that Linux doesn't have working Unix domain
sockets (yes it socks, I know ;-).  You can use inet domain sockets or
sys V IPC.

Anders

