Class DatagramSocketImpl
java.lang.Object
java.net.DatagramSocketImpl
- All Implemented Interfaces:
SocketOptions
-
Field Summary
FieldsFields inherited from interface 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 voidbind(int var0, InetAddress var1) protected abstract voidclose()protected abstract voidcreate()protected FileDescriptorprotected intabstract ObjectgetOption(int var0) protected abstract intprotected abstract voidjoin(InetAddress var0) protected abstract voidleave(InetAddress var0) protected abstract intpeek(InetAddress var0) protected abstract voidreceive(DatagramPacket var0) protected abstract voidsend(DatagramPacket var0) abstract voidprotected abstract voidsetTimeToLive(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:
getOptionin interfaceSocketOptions- Throws:
SocketException
-
getTimeToLive
- Throws:
IOException
-
join
- Throws:
IOException
-
leave
- Throws:
IOException
-
peek
- Throws:
IOException
-
receive
- Throws:
IOException
-
send
- Throws:
IOException
-
setOption
- Specified by:
setOptionin interfaceSocketOptions- Throws:
SocketException
-
setTimeToLive
- Throws:
IOException
-