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:
parent
147d396eaa
commit
f61e212582
5 changed files with 17 additions and 70 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue