Mercurial > hg > RemoteEditor > REPSessionManager
changeset 188:b9855078a070
*** empty log message ***
author | kent |
---|---|
date | Fri, 29 Aug 2008 17:13:30 +0900 |
parents | fc8ee7600cf3 |
children | d03e34861a26 |
files | rep/channel/REPServerSocketChannel.java |
diffstat | 1 files changed, 12 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/channel/REPServerSocketChannel.java Fri Aug 29 17:01:25 2008 +0900 +++ b/rep/channel/REPServerSocketChannel.java Fri Aug 29 17:13:30 2008 +0900 @@ -15,7 +15,7 @@ public class REPServerSocketChannel<P> extends ServerSocketChannel{ public static boolean isSimulation; - private ServerSocketChannel ss; + //private ServerSocketChannel ss; private REPPack<P> packer; /*protected REPServerSocketChannel(SelectorProvider provider) { @@ -23,8 +23,8 @@ }*/ public REPServerSocketChannel(ServerSocketChannel channel, REPPack<P> _packer){ - super(null); - ss = channel; + super(SelectorProvider.provider()); + //ss = channel; packer = _packer; } @@ -42,23 +42,25 @@ } public REPSocketChannel<P> accept1() throws IOException { - return new REPSocketChannel<P>(ss.accept(), packer); + return new REPSocketChannel<P>(accept(), packer); } + /* @Override public ServerSocket socket() { - return ss.socket(); - } + return super.socket(); + }*/ + /* @Override protected void implCloseSelectableChannel() throws IOException { ss.close(); - } - + }*/ +/* @Override protected void implConfigureBlocking(boolean block) throws IOException { ss.configureBlocking(block); - } + }*/ public SelectionKey register(REPSelector sel, int ops, Object att) throws ClosedChannelException { @@ -72,8 +74,7 @@ @Override public SocketChannel accept() throws IOException { - // TODO Auto-generated method stub - return null; + return (SocketChannel) accept1(); } }