<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.net.DatagramSocketImpl
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.net.html">This Package</a>  <a href="java.net.DatagramSocket.html#_top_">Previous</a>  <a href="java.net.HttpURLConnection.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.net.DatagramSocketImpl
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.net.DatagramSocketImpl
</pre>
<hr>
<dl>
  <dt> public abstract class <b>DatagramSocketImpl</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements SocketOptions
</dl>
Abstract datagram and multicast socket implementation base class.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#fd"><b>fd</b></a>
  <dd>  The file descriptor object
 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#localPort"><b>localPort</b></a>
  <dd> 
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#DatagramSocketImpl()"><b>DatagramSocketImpl</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#bind(int, java.net.InetAddress)"><b>bind</b></a>(int, InetAddress)
  <dd>  Binds a datagram socket to a local port and address.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#close()"><b>close</b></a>()
  <dd>  Close the socket.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#create()"><b>create</b></a>()
  <dd>  Creates a datagram socket
 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getFileDescriptor()"><b>getFileDescriptor</b></a>()
  <dd>  Get the datagram socket file descriptor
 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLocalPort()"><b>getLocalPort</b></a>()
  <dd>  Get the local port.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getOption(int)"><b>getOption</b></a>(int)
  <dd>  Fetch the value of an option.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getTTL()"><b>getTTL</b></a>()
  <dd>  Retrieve the TTL (time-to-live) option.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#join(java.net.InetAddress)"><b>join</b></a>(InetAddress)
  <dd>  Join the multicast group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#leave(java.net.InetAddress)"><b>leave</b></a>(InetAddress)
  <dd>  Leave the multicast group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#peek(java.net.InetAddress)"><b>peek</b></a>(InetAddress)
  <dd>  Peek at the packet to see who it is from.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#receive(java.net.DatagramPacket)"><b>receive</b></a>(DatagramPacket)
  <dd>  Receive the datagram packet.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#send(java.net.DatagramPacket)"><b>send</b></a>(DatagramPacket)
  <dd>  Sends a datagram packet.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setOption(int, java.lang.Object)"><b>setOption</b></a>(int, Object)
  <dd>  Enable/disable the option specified by <I>optID</I>.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setTTL(byte)"><b>setTTL</b></a>(byte)
  <dd>  Set the TTL (time-to-live) option.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="localPort"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>localPort</b>
<pre>
 protected int localPort
</pre>
<a name="fd"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>fd</b>
<pre>
 protected <a href="java.io.FileDescriptor.html#_top_">FileDescriptor</a> fd
</pre>
<dl>
  <dd> The file descriptor object<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="DatagramSocketImpl"></a>
<a name="DatagramSocketImpl()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>DatagramSocketImpl</b>
<pre>
 public DatagramSocketImpl()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="create()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="create"><b>create</b></a>
<pre>
 protected abstract void create() throws <a href="java.net.SocketException.html#_top_">SocketException</a>
</pre>
<dl>
  <dd> Creates a datagram socket
<p>
</dl>
<a name="bind(int, java.net.InetAddress)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="bind"><b>bind</b></a>
<pre>
 protected abstract void bind(int lport,
                              <a href="java.net.InetAddress.html#_top_">InetAddress</a> laddr) throws <a href="java.net.SocketException.html#_top_">SocketException</a>
</pre>
<dl>
  <dd> Binds a datagram socket to a local port and address.
<p>
</dl>
<a name="send(java.net.DatagramPacket)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="send"><b>send</b></a>
<pre>
 protected abstract void send(<a href="java.net.DatagramPacket.html#_top_">DatagramPacket</a> p) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Sends a datagram packet. The packet contains the data and the
 destination address to send the packet to.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> packet - to be sent.
  </dl></dd>
</dl>
<a name="peek(java.net.InetAddress)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="peek"><b>peek</b></a>
<pre>
 protected abstract int peek(<a href="java.net.InetAddress.html#_top_">InetAddress</a> i) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Peek at the packet to see who it is from.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> return - the address which the packet came from.
  </dl></dd>
</dl>
<a name="receive(java.net.DatagramPacket)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="receive"><b>receive</b></a>
<pre>
 protected abstract void receive(<a href="java.net.DatagramPacket.html#_top_">DatagramPacket</a> p) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Receive the datagram packet.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> Packet - Received.
  </dl></dd>
</dl>
<a name="setTTL(byte)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setTTL"><b>setTTL</b></a>
<pre>
 protected abstract void setTTL(byte ttl) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Set the TTL (time-to-live) option.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> TTL - to be set.
  </dl></dd>
</dl>
<a name="getTTL()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getTTL"><b>getTTL</b></a>
<pre>
 protected abstract byte getTTL() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Retrieve the TTL (time-to-live) option.
<p>
</dl>
<a name="join(java.net.InetAddress)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="join"><b>join</b></a>
<pre>
 protected abstract void join(<a href="java.net.InetAddress.html#_top_">InetAddress</a> inetaddr) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Join the multicast group.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> multicast - address to join.
  </dl></dd>
</dl>
<a name="leave(java.net.InetAddress)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="leave"><b>leave</b></a>
<pre>
 protected abstract void leave(<a href="java.net.InetAddress.html#_top_">InetAddress</a> inetaddr) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Leave the multicast group.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> multicast - address to leave.
  </dl></dd>
</dl>
<a name="close()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="close"><b>close</b></a>
<pre>
 protected abstract void close()
</pre>
<dl>
  <dd> Close the socket.
<p>
</dl>
<a name="getLocalPort()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLocalPort"><b>getLocalPort</b></a>
<pre>
 protected int getLocalPort()
</pre>
<dl>
  <dd> Get the local port.
<p>
</dl>
<a name="getFileDescriptor()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getFileDescriptor"><b>getFileDescriptor</b></a>
<pre>
 protected <a href="java.io.FileDescriptor.html#_top_">FileDescriptor</a> getFileDescriptor()
</pre>
<dl>
  <dd> Get the datagram socket file descriptor
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.net.html">This Package</a>  <a href="java.net.DatagramSocket.html#_top_">Previous</a>  <a href="java.net.HttpURLConnection.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
