java.net
Class DatagramSocketImpl

java.lang.Object
  |
  +--java.net.DatagramSocketImpl
All Implemented Interfaces:
SocketOptions

public abstract synchronized class DatagramSocketImpl
extends Object
implements SocketOptions


Field Summary
protected  FileDescriptor fd
           
protected  int localPort
           
 
Fields inherited from interface java.net.SocketOptions
IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY
 
Constructor Summary
DatagramSocketImpl()
           
 
Method Summary
protected abstract  void bind(int, InetAddress)
           
protected abstract  void close()
           
protected  void connect(InetAddress, int)
           
protected abstract  void create()
           
protected  void disconnect()
           
protected  FileDescriptor getFileDescriptor()
           
protected  int getLocalPort()
           
protected abstract  int getTimeToLive()
           
protected abstract  byte getTTL()
           
protected abstract  void join(InetAddress)
           
protected abstract  void joinGroup(SocketAddress, NetworkInterface)
           
protected abstract  void leave(InetAddress)
           
protected abstract  void leaveGroup(SocketAddress, NetworkInterface)
           
protected abstract  int peek(InetAddress)
           
protected abstract  int peekData(DatagramPacket)
           
protected abstract  void receive(DatagramPacket)
           
protected abstract  void send(DatagramPacket)
           
protected abstract  void setTimeToLive(int)
           
protected abstract  void setTTL(byte)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 
Methods inherited from interface java.net.SocketOptions
getOption, setOption
 

Field Detail

localPort

protected int localPort

fd

protected FileDescriptor fd
Constructor Detail

DatagramSocketImpl

public DatagramSocketImpl()
Method Detail

create

protected abstract void create()
                        throws SocketException
SocketException

bind

protected abstract void bind(int,
                             InetAddress)
                      throws SocketException
SocketException

send

protected abstract void send(DatagramPacket)
                      throws IOException
IOException

connect

protected void connect(InetAddress,
                       int)
                throws SocketException
SocketException

disconnect

protected void disconnect()

peek

protected abstract int peek(InetAddress)
                     throws IOException
IOException

peekData

protected abstract int peekData(DatagramPacket)
                         throws IOException
IOException

receive

protected abstract void receive(DatagramPacket)
                         throws IOException
IOException

setTTL

protected abstract void setTTL(byte)
                        throws IOException
IOException

getTTL

protected abstract byte getTTL()
                        throws IOException
IOException

setTimeToLive

protected abstract void setTimeToLive(int)
                               throws IOException
IOException

getTimeToLive

protected abstract int getTimeToLive()
                              throws IOException
IOException

join

protected abstract void join(InetAddress)
                      throws IOException
IOException

leave

protected abstract void leave(InetAddress)
                       throws IOException
IOException

joinGroup

protected abstract void joinGroup(SocketAddress,
                                  NetworkInterface)
                           throws IOException
IOException

leaveGroup

protected abstract void leaveGroup(SocketAddress,
                                   NetworkInterface)
                            throws IOException
IOException

close

protected abstract void close()

getLocalPort

protected int getLocalPort()

getFileDescriptor

protected FileDescriptor getFileDescriptor()