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
This commit is contained in:
Warren Levy 2000-01-04 22:41:58 +00:00 committed by Warren Levy
parent e46fbd72b8
commit 730ecdd3c3
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,4 +1,4 @@
/* 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;