Commit c5b49e89 by Michael Koch Committed by Michael Koch

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
parent b417ae14
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
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment