comparison rep/channel/REPSocketChannel.java @ 145:ec625f8f8d7c

*** empty log message ***
author kent
date Wed, 27 Aug 2008 23:01:40 +0900
parents 785a3e8ea858
children 4ff68518e9ca
comparison
equal deleted inserted replaced
144:0bf7f8d0f5f7 145:ec625f8f8d7c
82 public Socket socket() { 82 public Socket socket() {
83 // TODO Auto-generated method stub 83 // TODO Auto-generated method stub
84 return null; 84 return null;
85 } 85 }
86 86
87 public void read(P p){ 87 public P read(){
88 // TODO
89 return null;
88 90
89 } 91 }
92 public boolean write(P p){
93 return false;
94 //
95 }
90 96
91 public REPSocketChannel<P> create() throws IOException { 97 public static <T> REPSocketChannel<T> create() throws IOException {
92 if (REPServerSocketChannel.isSimulation) { 98 if (REPServerSocketChannel.isSimulation) {
93 return new ChannelSimulator<P>(null); 99 return new ChannelSimulator<T>(null);
94 } else { 100 } else {
95 return new REPSocketChannel<P>(SocketChannel.open()); 101 return new REPSocketChannel<T>(SocketChannel.open());
96 } 102 }
97 } 103 }
98 104
99 105
100 106