Package java.net
Class DatagramSocketImpl
java.lang.Object
java.net.DatagramSocketImpl
- All Implemented Interfaces:
SocketOptions
-
Field Summary
FieldsFields inherited from interface java.net.SocketOptions
IP_MULTICAST_IF, SO_BINDADDR, SO_KEEPALIVE, SO_LINGER, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
bind
(int var0, InetAddress var1) protected abstract void
close()
protected abstract void
create()
protected FileDescriptor
protected int
abstract Object
getOption
(int var0) protected abstract int
protected abstract void
join
(InetAddress var0) protected abstract void
leave
(InetAddress var0) protected abstract int
peek
(InetAddress var0) protected abstract void
receive
(DatagramPacket var0) protected abstract void
send
(DatagramPacket var0) abstract void
protected abstract void
setTimeToLive
(int var0)
-
Field Details
-
fd
-
localPort
protected int localPort
-
-
Constructor Details
-
DatagramSocketImpl
public DatagramSocketImpl()
-
-
Method Details
-
bind
- Throws:
SocketException
-
close
protected abstract void close() -
create
- Throws:
SocketException
-
getFileDescriptor
-
getLocalPort
protected int getLocalPort() -
getOption
- Specified by:
getOption
in interfaceSocketOptions
- Throws:
SocketException
-
getTimeToLive
- Throws:
IOException
-
join
- Throws:
IOException
-
leave
- Throws:
IOException
-
peek
- Throws:
IOException
-
receive
- Throws:
IOException
-
send
- Throws:
IOException
-
setOption
- Specified by:
setOption
in interfaceSocketOptions
- Throws:
SocketException
-
setTimeToLive
- Throws:
IOException
-