27 |
27 |
28 import java.io.FileDescriptor; |
28 import java.io.FileDescriptor; |
29 import java.io.IOException; |
29 import java.io.IOException; |
30 import java.net.ServerSocket; |
30 import java.net.ServerSocket; |
31 import java.net.Socket; |
31 import java.net.Socket; |
|
32 import java.net.ProtocolFamily; |
32 import java.nio.channels.*; |
33 import java.nio.channels.*; |
33 import java.nio.channels.spi.*; |
34 import java.nio.channels.spi.*; |
34 |
35 |
35 |
36 |
36 public abstract class SelectorProviderImpl |
37 public abstract class SelectorProviderImpl |
37 extends SelectorProvider |
38 extends SelectorProvider |
38 { |
39 { |
39 |
40 |
40 public DatagramChannel openDatagramChannel() throws IOException { |
41 public DatagramChannel openDatagramChannel() throws IOException { |
41 return new DatagramChannelImpl(this); |
42 return new DatagramChannelImpl(this); |
|
43 } |
|
44 |
|
45 public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException { |
|
46 return new DatagramChannelImpl(this, family); |
42 } |
47 } |
43 |
48 |
44 public Pipe openPipe() throws IOException { |
49 public Pipe openPipe() throws IOException { |
45 return new PipeImpl(this); |
50 return new PipeImpl(this); |
46 } |
51 } |