All Packages  Class Hierarchy  This Package  Previous  Next  Index
Class java.net.DatagramSocketImpl 
java.lang.Object
|
   +----java.net.DatagramSocketImpl
- public abstract class DatagramSocketImpl - extends Object - implements SocketOptions 
Abstract datagram and multicast socket implementation base class.
 
 
 fd fd
- The file descriptor object 
 localPort localPort
 
 
 DatagramSocketImpl() DatagramSocketImpl()
 
 
 bind(int, InetAddress) bind(int, InetAddress)
- Binds a datagram socket to a local port and address. 
 close() close()
- Close the socket. 
 create() create()
- Creates a datagram socket 
 getFileDescriptor() getFileDescriptor()
- Get the datagram socket file descriptor 
 getLocalPort() getLocalPort()
- Get the local port. 
 getOption(int) getOption(int)
- Fetch the value of an option. 
 getTTL() getTTL()
- Retrieve the TTL (time-to-live) option. 
 join(InetAddress) join(InetAddress)
- Join the multicast group. 
 leave(InetAddress) leave(InetAddress)
- Leave the multicast group. 
 peek(InetAddress) peek(InetAddress)
- Peek at the packet to see who it is from. 
 receive(DatagramPacket) receive(DatagramPacket)
- Receive the datagram packet. 
 send(DatagramPacket) send(DatagramPacket)
- Sends a datagram packet. 
 setOption(int, Object) setOption(int, Object)
- Enable/disable the option specified by optID. 
 setTTL(byte) setTTL(byte)
- Set the TTL (time-to-live) option. 
 
 
 localPort
 localPort 
protected int localPort
 fd
 fd 
protected FileDescriptor fd
- The file descriptor object
 
 
 DatagramSocketImpl
 DatagramSocketImpl 
public DatagramSocketImpl()
 
 
 create
 create 
protected abstract void create() throws SocketException
- Creates a datagram socket 
 bind
 bind 
protected abstract void bind(int lport,
InetAddress laddr) throws SocketException
- Binds a datagram socket to a local port and address. 
 send
 send 
protected abstract void send(DatagramPacket p) throws IOException
- Sends a datagram packet. The packet contains the data and the destination address to send the packet to. - Parameters: 
- packet - to be sent. 
 
 peek
 peek 
protected abstract int peek(InetAddress i) throws IOException
- Peek at the packet to see who it is from. - Parameters: 
- return - the address which the packet came from. 
 
 receive
 receive 
protected abstract void receive(DatagramPacket p) throws IOException
- Receive the datagram packet. - Parameters: 
- Packet - Received. 
 
 setTTL
 setTTL 
protected abstract void setTTL(byte ttl) throws IOException
- Set the TTL (time-to-live) option. - Parameters: 
- TTL - to be set. 
 
 getTTL
 getTTL 
protected abstract byte getTTL() throws IOException
- Retrieve the TTL (time-to-live) option. 
 join
 join 
protected abstract void join(InetAddress inetaddr) throws IOException
- Join the multicast group. - Parameters: 
- multicast - address to join. 
 
 leave
 leave 
protected abstract void leave(InetAddress inetaddr) throws IOException
- Leave the multicast group. - Parameters: 
- multicast - address to leave. 
 
 close
 close 
protected abstract void close()
- Close the socket. 
 getLocalPort
 getLocalPort 
protected int getLocalPort()
- Get the local port. 
 getFileDescriptor
 getFileDescriptor 
protected FileDescriptor getFileDescriptor()
- Get the datagram socket file descriptor 
All Packages  Class Hierarchy  This Package  Previous  Next  Index
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.