| 
JavaTM 2 Platform Standard Edition  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.net.DatagramSocketImpl
Abstract datagram and multicast socket implementation base class.
| Field Summary | |
protected  FileDescriptor | 
fd
The file descriptor object  | 
protected  int | 
localPort
 | 
| Fields inherited from interface java.net.SocketOptions | 
IP_MULTICAST_IF,  
SO_BINDADDR,  
SO_LINGER,  
SO_RCVBUF,  
SO_REUSEADDR,  
SO_SNDBUF,  
SO_TIMEOUT,  
TCP_NODELAY | 
| Constructor Summary | |
DatagramSocketImpl()
 | 
|
| Method Summary | |
protected abstract  void | 
bind(int lport,
     InetAddress laddr)
Binds a datagram socket to a local port and address.  | 
protected abstract  void | 
close()
Close the socket.  | 
protected abstract  void | 
create()
Creates a datagram socket  | 
protected  FileDescriptor | 
getFileDescriptor()
Get the datagram socket file descriptor  | 
protected  int | 
getLocalPort()
Get the local port.  | 
protected abstract  int | 
getTimeToLive()
Retrieve the TTL (time-to-live) option.  | 
protected abstract  byte | 
getTTL()
Deprecated. use getTimeToLive instead.  | 
protected abstract  void | 
join(InetAddress inetaddr)
Join the multicast group.  | 
protected abstract  void | 
leave(InetAddress inetaddr)
Leave the multicast group.  | 
protected abstract  int | 
peek(InetAddress i)
Peek at the packet to see who it is from.  | 
protected abstract  void | 
receive(DatagramPacket p)
Receive the datagram packet.  | 
protected abstract  void | 
send(DatagramPacket p)
Sends a datagram packet.  | 
protected abstract  void | 
setTimeToLive(int ttl)
Set the TTL (time-to-live) option.  | 
protected abstract  void | 
setTTL(byte ttl)
Deprecated. use setTimeToLive instead.  | 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
| Field Detail | 
protected int localPort
protected FileDescriptor fd
| Constructor Detail | 
public DatagramSocketImpl()
| Method Detail | 
protected abstract void create()
                        throws SocketException
protected abstract void bind(int lport,
                             InetAddress laddr)
                      throws SocketException
protected abstract void send(DatagramPacket p) throws IOException
packet - to be sent.protected abstract int peek(InetAddress i) throws IOException
return - the address which the packet came from.protected abstract void receive(DatagramPacket p) throws IOException
Packet - Received.
protected abstract void setTTL(byte ttl)
                        throws IOException
TTL - to be set.
protected abstract byte getTTL()
                        throws IOException
protected abstract void setTimeToLive(int ttl)
                               throws IOException
TTL - to be set.
protected abstract int getTimeToLive()
                              throws IOException
protected abstract void join(InetAddress inetaddr) throws IOException
multicast - address to join.protected abstract void leave(InetAddress inetaddr) throws IOException
multicast - address to leave.protected abstract void close()
protected int getLocalPort()
protected FileDescriptor getFileDescriptor()
  | 
JavaTM 2 Platform Standard Edition  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||