88 |
|
|
89 |
/** |
/** |
90 |
* Returns the number of bytes that the caller can read from this socket |
* Returns the number of bytes that the caller can read from this socket |
91 |
* without blocking. //*****Figure out if we can do something here |
* without blocking. |
92 |
* |
* |
93 |
* @return The number of readable bytes before blocking |
* @return The number of readable bytes before blocking |
94 |
* |
* |
95 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
96 |
*/ |
*/ |
97 |
protected int available() throws IOException |
protected native int available() throws IOException; |
|
{ |
|
|
return(0); |
|
|
} |
|
98 |
|
|
99 |
/** |
/** |
100 |
* 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 |
117 |
* |
* |
118 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
119 |
*/ |
*/ |
120 |
protected native synchronized void close() throws IOException; |
protected native void close() throws IOException; |
121 |
|
|
122 |
/** |
/** |
123 |
* Connects to the remote address and port specified as arguments. |
* Connects to the remote address and port specified as arguments. |
127 |
* |
* |
128 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
129 |
*/ |
*/ |
130 |
protected native synchronized void connect(InetAddress addr, int port) |
protected native void connect(InetAddress addr, int port) |
131 |
throws IOException; |
throws IOException; |
132 |
|
|
133 |
/** |
/** |
202 |
* |
* |
203 |
* @exception SocketException If an error occurs |
* @exception SocketException If an error occurs |
204 |
*/ |
*/ |
205 |
public native synchronized void setOption(int option_id, Object val) |
public native void setOption(int option_id, Object val) |
206 |
throws SocketException; |
throws SocketException; |
207 |
|
|
208 |
/** |
/** |
216 |
* |
* |
217 |
* @exception SocketException If an error occurs |
* @exception SocketException If an error occurs |
218 |
*/ |
*/ |
219 |
public native synchronized Object getOption(int option_id) |
public native Object getOption(int option_id) |
220 |
throws SocketException; |
throws SocketException; |
221 |
|
|
222 |
/** |
/** |