mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
2003-06-08 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java (DatagramSocket): No need to set SO_REUSEADDRESS here. This belongs into the Multicast constructors. * java/net/DatagramSocketImpl.java (getOption): Removed. (setOption): Removed. * java/net/MulticastSocket.java (MulticastSocket): Call setReuseAddress (true). * java/net/SocketImpl.java (getOption): Removed. (setOption): Removed. From-SVN: r67617
This commit is contained in:
committed by
Michael Koch
parent
147d396eaa
commit
f61e212582
@@ -81,6 +81,7 @@ public class MulticastSocket extends DatagramSocket
|
||||
public MulticastSocket() throws IOException
|
||||
{
|
||||
super(0, null);
|
||||
setReuseAddress (true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,6 +96,7 @@ public class MulticastSocket extends DatagramSocket
|
||||
public MulticastSocket(int port) throws IOException
|
||||
{
|
||||
super(port, null);
|
||||
setReuseAddress (true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,6 +113,7 @@ public class MulticastSocket extends DatagramSocket
|
||||
public MulticastSocket(SocketAddress address) throws IOException
|
||||
{
|
||||
super(address);
|
||||
setReuseAddress (true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user