123
|
1 package rep.channel;
|
|
2
|
|
3 import java.io.IOException;
|
|
4 import java.net.ServerSocket;
|
|
5 import java.nio.channels.ServerSocketChannel;
|
|
6 import java.nio.channels.SocketChannel;
|
|
7 import java.nio.channels.spi.SelectorProvider;
|
|
8
|
|
9 public class ServerChannelSimulatorImpl extends REPServerSocketChannel{
|
|
10
|
|
11
|
|
12 protected ServerChannelSimulatorImpl(SelectorProvider provider) {
|
|
13 super(provider);
|
|
14 }
|
|
15
|
|
16
|
|
17 @Override
|
|
18 public ServerSocket socket() {
|
|
19 // TODO Auto-generated method stub
|
|
20 return null;
|
|
21 }
|
|
22
|
|
23
|
|
24 @Override
|
|
25 public SocketChannel accept() throws IOException {
|
|
26 // TODO Auto-generated method stub
|
|
27
|
|
28 return null;
|
|
29 }
|
|
30
|
|
31
|
|
32 @Override
|
|
33 protected void implCloseSelectableChannel() throws IOException {
|
|
34 // TODO Auto-generated method stub
|
|
35
|
|
36 }
|
|
37
|
|
38
|
|
39 @Override
|
|
40 protected void implConfigureBlocking(boolean block) throws IOException {
|
|
41 // TODO Auto-generated method stub
|
|
42
|
|
43 }
|
|
44
|
|
45 public static REPServerSocketChannel open() {
|
|
46 new ServerChannelSimulator(null, null);
|
|
47 return null;
|
|
48 }
|
|
49
|
|
50 }
|