API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. DatagramSocketImpl View Source
Author(s)
Pavani Diwanji
Since
JDK1.1
Version
Serial
Hierarchy
 Object
      DatagramSocketImpl
Implements
 SocketOptions
Subclasses
Description
publicabstract abstract class DatagramSocketImpl
  Abstract datagram and multicast socket implementation base class.
See also:   
Constructors
public DatagramSocketImpl ()
Methods
Hide/Show inherited methods
protectedabstract void bind (int lport, InetAddress laddr) throws SocketException
  Binds a datagram socket to a local port and address.
protectedabstract void close ()
Close the socket.
protected void connect (InetAddress address, int port) throws SocketException
  Connects a datagram socket to a remote destination.
protectedabstract void create () throws SocketException
  Creates a datagram socket.
protected void disconnect ()
  Disconnects a datagram socket from its remote destination.
protected FileDescriptor getFileDescriptor ()
  Gets the datagram socket file descriptor.
protected int getLocalPort ()
  Gets the local port.
protectedabstract int getTimeToLive () throws IOException
  Retrieve the TTL (time-to-live) option.
@Deprecated
protectedabstract byte getTTL () throws IOException
  Retrieve the TTL (time-to-live) option.
protectedabstract void join (InetAddress inetaddr) throws IOException
  Join the multicast group.
protectedabstract void joinGroup (SocketAddress mcastaddr, NetworkInterface netIf) throws IOException
  Join the multicast group.
protectedabstract void leave (InetAddress inetaddr) throws IOException
  Leave the multicast group.
protectedabstract void leaveGroup (SocketAddress mcastaddr, NetworkInterface netIf) throws IOException
  Leave the multicast group.
protectedabstract int peek (InetAddress i) throws IOException
  Peek at the packet to see who it is from.
protectedabstract int peekData (DatagramPacket p) throws IOException
  Peek at the packet to see who it is from.
protectedabstract void receive (DatagramPacket p) throws IOException
  Receive the datagram packet.
protectedabstract void send (DatagramPacket p) throws IOException
  Sends a datagram packet.
protectedabstract void setTimeToLive (int ttl) throws IOException
  Set the TTL (time-to-live) option.
@Deprecated
protectedabstract void setTTL (byte ttl) throws IOException
  Set the TTL (time-to-live) option.
Fields
Hide/Show inherited fields
protected FileDescriptor fd
The file descriptor object.
publicfinalstatic int IP_MULTICAST_IF = "16" [Inherited From SocketOptions]
  Set which outgoing interface on which to send multicast packets.
publicfinalstatic int IP_MULTICAST_IF2 = "31" [Inherited From SocketOptions]
  Same as above.
publicfinalstatic int IP_MULTICAST_LOOP = "18" [Inherited From SocketOptions]
  This option enables or disables local loopback of multicast datagrams.
publicfinalstatic int IP_TOS = "3" [Inherited From SocketOptions]
  This option sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket.
protected int localPort
The local port number.
publicfinalstatic int SO_BINDADDR = "15" [Inherited From SocketOptions]
  Fetch the local address binding of a socket (this option cannot be "set" only "gotten", since sockets are bound at creation time, and so the locally bound address cannot be changed).
publicfinalstatic int SO_BROADCAST = "32" [Inherited From SocketOptions]
  Sets SO_BROADCAST for a socket.
publicfinalstatic int SO_KEEPALIVE = "8" [Inherited From SocketOptions]
  When the keepalive option is set for a TCP socket and no data has been exchanged across the socket in either direction for 2 hours (NOTE: the actual value is implementation dependent), TCP automatically sends a keepalive probe to the peer.
publicfinalstatic int SO_LINGER = "128" [Inherited From SocketOptions]
  Specify a linger-on-close timeout.
publicfinalstatic int SO_OOBINLINE = "4099" [Inherited From SocketOptions]
  When the OOBINLINE option is set, any TCP urgent data received on the socket will be received through the socket input stream.
publicfinalstatic int SO_RCVBUF = "4098" [Inherited From SocketOptions]
  Set a hint the size of the underlying buffers used by the platform for incoming network I/O.
publicfinalstatic int SO_REUSEADDR = "4" [Inherited From SocketOptions]
  Sets SO_REUSEADDR for a socket.
publicfinalstatic int SO_SNDBUF = "4097" [Inherited From SocketOptions]
  Set a hint the size of the underlying buffers used by the platform for outgoing network I/O.
publicfinalstatic int SO_TIMEOUT = "4102" [Inherited From SocketOptions]
  Set a timeout on blocking Socket operations:
publicfinalstatic int TCP_NODELAY = "1" [Inherited From SocketOptions]
  Disable Nagle's algorithm for this connection.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar