108 |
* @return The port number of the sender of the packet |
* @return The port number of the sender of the packet |
109 |
* |
* |
110 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
111 |
|
* @exception PortUnreachableException May be thrown if the socket is |
112 |
|
* connected to a currently unreachable destination. Note, there is no |
113 |
|
* guarantee that the exception will be thrown. |
114 |
*/ |
*/ |
115 |
protected abstract int peek(InetAddress i) throws IOException; |
protected abstract int peek(InetAddress i) throws IOException; |
116 |
|
|
121 |
* @param p The packet to send |
* @param p The packet to send |
122 |
* |
* |
123 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
124 |
|
* @exception PortUnreachableException May be thrown if the socket is |
125 |
|
* connected to a currently unreachable destination. Note, there is no |
126 |
|
* guarantee that the exception will be thrown. |
127 |
*/ |
*/ |
128 |
protected abstract void send(DatagramPacket p) throws IOException; |
protected abstract void send(DatagramPacket p) throws IOException; |
129 |
|
|
135 |
* @param p A place to store the incoming packet. |
* @param p A place to store the incoming packet. |
136 |
* |
* |
137 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
138 |
|
* @exception PortUnreachableException May be thrown if the socket is |
139 |
|
* connected to a currently unreachable destination. Note, there is no |
140 |
|
* guarantee that the exception will be thrown. |
141 |
*/ |
*/ |
142 |
protected abstract void receive(DatagramPacket p) throws IOException; |
protected abstract void receive(DatagramPacket p) throws IOException; |
143 |
|
|
217 |
* Sets the specified option on a socket to the passed in object. For |
* Sets the specified option on a socket to the passed in object. For |
218 |
* options that take an integer argument, the passed in object is an |
* options that take an integer argument, the passed in object is an |
219 |
* <code>Integer</code>. For options that are set to on or off, the |
* <code>Integer</code>. For options that are set to on or off, the |
220 |
* value passed will be a <code>Boolean</code>. The <code>option_id</code> |
* value passed will be a <code>Boolean</code>. The <code>option_id</code> |
221 |
* parameter is one of the defined constants in the superinterface. |
* parameter is one of the defined constants in the superinterface. |
222 |
* |
* |
223 |
* @param option_id The identifier of the option |
* @param option_id The identifier of the option |