Package java.net
Class DatagramSocketImpl
- java.lang.Object
-
- java.net.DatagramSocketImpl
-
- All Implemented Interfaces:
SocketOptions
public abstract class DatagramSocketImpl extends Object implements SocketOptions
-
-
Field Summary
Fields Modifier and Type Field Description protected FileDescriptorfdprotected intlocalPort-
Fields 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 Constructor Description DatagramSocketImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidbind(int var0, InetAddress var1)protected abstract voidclose()protected abstract voidcreate()protected FileDescriptorgetFileDescriptor()protected intgetLocalPort()abstract ObjectgetOption(int var0)protected abstract intgetTimeToLive()protected 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 voidsetOption(int var0, Object var1)protected abstract voidsetTimeToLive(int var0)
-
-
-
Field Detail
-
fd
protected FileDescriptor fd
-
localPort
protected int localPort
-
-
Method Detail
-
bind
protected abstract void bind(int var0, InetAddress var1) throws SocketException- Throws:
SocketException
-
close
protected abstract void close()
-
create
protected abstract void create() throws SocketException- Throws:
SocketException
-
getFileDescriptor
protected FileDescriptor getFileDescriptor()
-
getLocalPort
protected int getLocalPort()
-
getOption
public abstract Object getOption(int var0) throws SocketException
- Specified by:
getOptionin interfaceSocketOptions- Throws:
SocketException
-
getTimeToLive
protected abstract int getTimeToLive() throws IOException- Throws:
IOException
-
join
protected abstract void join(InetAddress var0) throws IOException
- Throws:
IOException
-
leave
protected abstract void leave(InetAddress var0) throws IOException
- Throws:
IOException
-
peek
protected abstract int peek(InetAddress var0) throws IOException
- Throws:
IOException
-
receive
protected abstract void receive(DatagramPacket var0) throws IOException
- Throws:
IOException
-
send
protected abstract void send(DatagramPacket var0) throws IOException
- Throws:
IOException
-
setOption
public abstract void setOption(int var0, Object var1) throws SocketException- Specified by:
setOptionin interfaceSocketOptions- Throws:
SocketException
-
setTimeToLive
protected abstract void setTimeToLive(int var0) throws IOException- Throws:
IOException
-
-