122 |
throws IOException; |
throws IOException; |
123 |
|
|
124 |
/** |
/** |
125 |
|
* Connects to the socket to the host specified in address. This |
126 |
|
* method blocks until successful connected or the timeout occurs. |
127 |
|
* A timeout of zero means no timout. |
128 |
|
* |
129 |
|
* @param address Data of remote host |
130 |
|
* @param timeout time to wait to stop connecting |
131 |
|
* |
132 |
|
* @exception IOException If an error occurs |
133 |
|
* |
134 |
|
* @since 1.4 |
135 |
|
*/ |
136 |
|
protected abstract void connect(SocketAddress address, int timeout) |
137 |
|
throws IOException; |
138 |
|
|
139 |
|
/** |
140 |
* Binds to the specified port on the specified addr. Note that this addr |
* Binds to the specified port on the specified addr. Note that this addr |
141 |
* must represent a local IP address. |
* must represent a local IP address. |
142 |
* <p> |
* <p> |
245 |
} |
} |
246 |
|
|
247 |
/** |
/** |
248 |
|
* Sends one byte of urgent data to the socket. |
249 |
|
* |
250 |
|
* @param data The byte to send, the low eight bits of it |
251 |
|
* |
252 |
|
* @exception IOException If an error occurs |
253 |
|
* |
254 |
|
* @since 1.4 |
255 |
|
*/ |
256 |
|
protected abstract void sendUrgentData(int data) |
257 |
|
throws IOException; |
258 |
|
|
259 |
|
/** |
260 |
* Returns the local port this socket is bound to |
* Returns the local port this socket is bound to |
261 |
* |
* |
262 |
* @return The local port |
* @return The local port |
306 |
* @XXX This redeclaration from SocketOptions is a workaround to a gcj bug. |
* @XXX This redeclaration from SocketOptions is a workaround to a gcj bug. |
307 |
*/ |
*/ |
308 |
public abstract Object getOption(int option_id) throws SocketException; |
public abstract Object getOption(int option_id) throws SocketException; |
309 |
|
|
310 |
|
/** |
311 |
|
* Shut down the input side of this socket. Subsequent reads will |
312 |
|
* return end-of-file. |
313 |
|
* |
314 |
|
* @exception IOException if an error occurs |
315 |
|
*/ |
316 |
|
protected abstract void shutdownInput () throws IOException; |
317 |
|
|
318 |
|
/** |
319 |
|
* Shut down the output side of this socket. Subsequent writes will |
320 |
|
* fail with an IOException. |
321 |
|
* |
322 |
|
* @exception IOException if an error occurs |
323 |
|
*/ |
324 |
|
protected abstract void shutdownOutput () throws IOException; |
325 |
} |
} |