mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 15:24:07 +08:00
2003-06-28 Michael Koch <konqueror@gmx.de>
* java/net/ServerSocket.java (setChannel): New method. * java/net/Socket.java (setChannel): New method. From-SVN: r68631
This commit is contained in:
parent
b417ae14c8
commit
c5b49e898e
@ -1,3 +1,10 @@
|
||||
2003-06-28 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/net/ServerSocket.java
|
||||
(setChannel): New method.
|
||||
* java/net/Socket.java
|
||||
(setChannel): New method.
|
||||
|
||||
2003-06-27 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/beans/beancontext/BeanContextSupport.java:
|
||||
|
@ -164,6 +164,14 @@ public class ServerSocket
|
||||
bind (new InetSocketAddress (bindAddr, port), backlog);
|
||||
}
|
||||
|
||||
/*
|
||||
* This method may only be used by java.nio.channels.ServerSocketChannel.open.
|
||||
*/
|
||||
void setChannel (ServerSocketChannel ch)
|
||||
{
|
||||
this.ch = ch;
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds the server socket to a specified socket address
|
||||
*
|
||||
|
@ -305,6 +305,15 @@ public class Socket
|
||||
// that default. JDK 1.2 doc infers not to do a bind.
|
||||
}
|
||||
|
||||
/*
|
||||
* This method may only be used by java.nio.channels.ServerSocketChannel.accept and
|
||||
* java.nio.channels.SocketChannel.open.
|
||||
*/
|
||||
void setChannel (SocketChannel ch)
|
||||
{
|
||||
this.ch = ch;
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds the socket to the givent local address/port
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user