java.io.IOException (class) |
Constructors: |
IOException();
IOException(String msg);
|
General Description: |
General exceptions during input and output. |
Parent Class: |
Exception Child Exceptions java.net.ProtocolException Protocol error in Socket. java.net.UnknownHostException Hostname not found in DNS. java.net.UnknownServiceException Unsupported service attempted. (d)java.net.SocketException (class) Constructor: SocketException(); SocketException(String msg); General Description: Exception when trying to use bind(), connect(), listen() or accept(). Used by ServerSocket, ClientSocket, and MessageGroup. Parent Class: IOException Child Exceptions java.net.BindException Could not bind to address/port (often because it is already in use by another process). java.net.ConnectException Host unavailable, not found, not responding, or not process listening on designated port. java.net.NoRouteToHostException Route to the destination could not be established. (c)Java Support Classes (d)java.net.DatagramPacket (class) Constructor: DatagramPacket(byte[] buf, int len); DatagramPacket(byte[] buf, int len, InetAddress addr, int port); DatagramPacket(byte[] buf, int Offset, int len); DatagramPacket(byte[] buf, int Offset, int len, InetAddress addr, int port); General Description: Basic message carriers for receiving and sending messages. |
Methods |
InetAddress getAddress(); |
|
void setAddress(InetAddress addr); |
Get/set the source/destination address of the packet. |
byte[] getData(); |
|
void setData(byte[] buf); |
|
void setData(byte[] buf, int offset, int len); |
Get/set the message data. |
int getLength(); |
|
void setLength(int length); |
Get/set the message data length. |
int getOffset(); |
Get the offset of the data to be sent or received. |
int getPort(); |
|
void setPort(int port); |
Get/set the source/destination port of the packet. |
Exceptions Thrown |
(none), |