InetAddress.java: Merged class documentation with classpath.
2003-05-02 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Merged class documentation with classpath. * java/net/JarURLConnection.java: Explicitely import all used classes. * java/net/URL.java: Reformatting. * java/net/ServerSocket.java, java/net/Socket.java: New versions from classpath. From-SVN: r66376
This commit is contained in:
parent
9ab94a932c
commit
143f596a09
6 changed files with 126 additions and 18 deletions
|
@ -164,9 +164,50 @@ public class ServerSocket
|
|||
if (bindAddr == null)
|
||||
bindAddr = InetAddress.ANY_IF;
|
||||
|
||||
// create socket
|
||||
impl.create(true);
|
||||
impl.bind(bindAddr, port);
|
||||
impl.listen(backlog);
|
||||
|
||||
// bind to address/port
|
||||
try
|
||||
{
|
||||
impl.bind(bindAddr, port);
|
||||
}
|
||||
catch (IOException exception)
|
||||
{
|
||||
impl.close();
|
||||
throw exception;
|
||||
}
|
||||
catch (RuntimeException exception)
|
||||
{
|
||||
impl.close();
|
||||
throw exception;
|
||||
}
|
||||
catch (Error error)
|
||||
{
|
||||
impl.close();
|
||||
throw error;
|
||||
}
|
||||
|
||||
// listen on socket
|
||||
try
|
||||
{
|
||||
impl.listen(backlog);
|
||||
}
|
||||
catch (IOException exception)
|
||||
{
|
||||
impl.close();
|
||||
throw exception;
|
||||
}
|
||||
catch (RuntimeException exception)
|
||||
{
|
||||
impl.close();
|
||||
throw exception;
|
||||
}
|
||||
catch (Error error)
|
||||
{
|
||||
impl.close();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue