168 |
throws IOException; |
throws IOException; |
169 |
|
|
170 |
protected void connect(SocketAddress address, int timeout) |
protected void connect(SocketAddress address, int timeout) |
171 |
|
throws IOException |
172 |
{ |
{ |
173 |
throw new InternalError ("PlainSocketImpl::connect not implemented"); |
// NYI: this method need to support timeout |
174 |
|
if (address instanceof InetSocketAddress) |
175 |
|
{ |
176 |
|
connect(((InetSocketAddress) address).getAddress(), |
177 |
|
((InetSocketAddress) address).getPort() ); |
178 |
|
} |
179 |
|
else |
180 |
|
{ |
181 |
|
throw new InternalError("PlainSocketImpl:connect not implemented for anything other than InetSocketAddress"); |
182 |
|
} |
183 |
|
// throw new InternalError ("PlainSocketImpl::connect not implemented"); |
184 |
} |
} |
185 |
|
|
186 |
/** |
/** |