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:
Michael Koch 2003-06-28 08:13:24 +00:00 committed by Michael Koch
parent b417ae14c8
commit c5b49e898e
3 changed files with 24 additions and 0 deletions

View File

@ -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> 2003-06-27 Michael Koch <konqueror@gmx.de>
* java/beans/beancontext/BeanContextSupport.java: * java/beans/beancontext/BeanContextSupport.java:

View File

@ -164,6 +164,14 @@ public class ServerSocket
bind (new InetSocketAddress (bindAddr, port), backlog); 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 * Binds the server socket to a specified socket address
* *

View File

@ -305,6 +305,15 @@ public class Socket
// that default. JDK 1.2 doc infers not to do a bind. // 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 * Binds the socket to the givent local address/port
* *