Commit 730ecdd3 by Warren Levy Committed by Warren Levy

natPlainDatagramSocketImpl.cc (peek): Removed unnecesary comment.

	* java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
	comment.
	(receive): Set the sender's address in the DatagramPacket.

From-SVN: r31218
parent e46fbd72
2000-01-04 Warren Levy <warrenl@cygnus.com>
* java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
comment.
(receive): Set the sender's address in the DatagramPacket.
2000-01-04 Tom Tromey <tromey@cygnus.com>
* java/lang/reflect/natConstructor.cc (newInstance): Pass
......
/* Copyright (C) 1999 Cygnus Solutions
/* Copyright (C) 1999, 2000 Cygnus Solutions
This file is part of libgcj.
......@@ -242,7 +242,6 @@ java::net::PlainDatagramSocketImpl::peek (java::net::InetAddress *i)
#endif
else
goto error;
// FIXME: Multicast: s->address = new InetAddress (raddr, NULL);
i->address = raddr;
return rport;
error:
......@@ -335,7 +334,7 @@ java::net::PlainDatagramSocketImpl::receive (java::net::DatagramPacket *p)
#endif
else
goto error;
// FIXME: Multicast: s->address = new InetAddress (raddr, NULL);
p->setAddress (new InetAddress (raddr, NULL));
p->setPort (rport);
p->setLength ((jint) retlen);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment