DatagramSocket.java: Partly merged with classpath.
2003-06-11 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java: Partly merged with classpath. From-SVN: r67755
This commit is contained in:
parent
37f3981f80
commit
39b3ceceee
2 changed files with 26 additions and 4 deletions
|
@ -174,11 +174,28 @@ public class DatagramSocket
|
|||
}
|
||||
impl.create();
|
||||
|
||||
|
||||
impl.bind(port, laddr == null ? InetAddress.ANY_IF : laddr);
|
||||
if (laddr == null)
|
||||
laddr = InetAddress.ANY_IF;
|
||||
|
||||
remoteAddress = null;
|
||||
remotePort = -1;
|
||||
try
|
||||
{
|
||||
impl.bind (port, laddr);
|
||||
}
|
||||
catch (SocketException exception)
|
||||
{
|
||||
impl.close ();
|
||||
throw exception;
|
||||
}
|
||||
catch (RuntimeException exception)
|
||||
{
|
||||
impl.close ();
|
||||
throw exception;
|
||||
}
|
||||
catch (Error error)
|
||||
{
|
||||
impl.close ();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue