Mercurial > hg > RemoteEditor > REPSessionManager
changeset 145:ec625f8f8d7c
*** empty log message ***
author | kent |
---|---|
date | Wed, 27 Aug 2008 23:01:40 +0900 |
parents | 0bf7f8d0f5f7 |
children | 20beee6ca31a |
files | rep/channel/REPSocketChannel.java |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/channel/REPSocketChannel.java Wed Aug 27 22:55:43 2008 +0900 +++ b/rep/channel/REPSocketChannel.java Wed Aug 27 23:01:40 2008 +0900 @@ -84,15 +84,21 @@ return null; } - public void read(P p){ + public P read(){ + // TODO + return null; } + public boolean write(P p){ + return false; + // + } - public REPSocketChannel<P> create() throws IOException { + public static <T> REPSocketChannel<T> create() throws IOException { if (REPServerSocketChannel.isSimulation) { - return new ChannelSimulator<P>(null); + return new ChannelSimulator<T>(null); } else { - return new REPSocketChannel<P>(SocketChannel.open()); + return new REPSocketChannel<T>(SocketChannel.open()); } }