1 |
/* DatagramSocket.java -- A class to model UDP sockets |
/* DatagramSocket.java -- A class to model UDP sockets |
2 |
Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004 |
Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
38 |
|
|
39 |
package java.net; |
package java.net; |
40 |
|
|
41 |
|
import gnu.classpath.SystemProperties; |
42 |
|
|
43 |
import gnu.java.net.PlainDatagramSocketImpl; |
import gnu.java.net.PlainDatagramSocketImpl; |
44 |
import gnu.java.nio.DatagramChannelImpl; |
import gnu.java.nio.DatagramChannelImpl; |
45 |
|
|
174 |
*/ |
*/ |
175 |
public DatagramSocket(SocketAddress address) throws SocketException |
public DatagramSocket(SocketAddress address) throws SocketException |
176 |
{ |
{ |
177 |
String propVal = System.getProperty("impl.prefix"); |
String propVal = SystemProperties.getProperty("impl.prefix"); |
178 |
if (propVal == null || propVal.equals("")) |
if (propVal == null || propVal.equals("")) |
179 |
impl = new PlainDatagramSocketImpl(); |
impl = new PlainDatagramSocketImpl(); |
180 |
else |
else |