| java.lang.Object java.net.DatagramSocketImpl org.apache.harmony.luni.net.PlainDatagramSocketImpl
All known Subclasses: org.apache.harmony.luni.net.PlainMulticastSocketImpl,
PlainDatagramSocketImpl | class PlainDatagramSocketImpl extends DatagramSocketImpl (Code) | | The default, concrete instance of datagram sockets. This class does not
support security checks. Alternative types of DatagramSocketImpl's may be
used by setting the impl.prefix system property.
|
FLAG_SHUTDOWN | final static int FLAG_SHUTDOWN(Code) | | |
IP_MULTICAST_ADD | final static int IP_MULTICAST_ADD(Code) | | |
IP_MULTICAST_DROP | final static int IP_MULTICAST_DROP(Code) | | |
IP_MULTICAST_TTL | final static int IP_MULTICAST_TTL(Code) | | |
MULTICAST_IF | final static int MULTICAST_IF(Code) | | |
MULTICAST_TTL | final static int MULTICAST_TTL(Code) | | |
REUSEADDR_AND_REUSEPORT | final static int REUSEADDR_AND_REUSEPORT(Code) | | for datagram and multicast sockets we have to set REUSEADDR and REUSEPORT
when REUSEADDR is set for other types of sockets we need to just set
REUSEADDR therefore we have this other option which sets both if
supported by the platform. this cannot be in SOCKET_OPTIONS because since
it is a public interface it ends up being public even if it is not
declared public
|
TCP_NODELAY | final static int TCP_NODELAY(Code) | | |
receiveTimeout | public int receiveTimeout(Code) | | |
shutdownInput | public boolean shutdownInput(Code) | | |
streaming | public boolean streaming(Code) | | |
PlainDatagramSocketImpl | public PlainDatagramSocketImpl(FileDescriptor fd, int localPort)(Code) | | |
PlainDatagramSocketImpl | public PlainDatagramSocketImpl()(Code) | | |
close | public void close()(Code) | | |
disconnect | public void disconnect()(Code) | | |
finalize | protected void finalize()(Code) | | |
setOption | public void setOption(int optID, Object val) throws SocketException(Code) | | Set the nominated socket option. As the timeouts are not set as options
in the IP stack, the value is stored in an instance field.
throws: SocketException - thrown if the option value is unsupported orinvalid |
|
|