equal
deleted
inserted
replaced
45 { |
45 { |
46 // The SocketChannel assoicated with this pipe |
46 // The SocketChannel assoicated with this pipe |
47 final SocketChannel sc; |
47 final SocketChannel sc; |
48 |
48 |
49 public FileDescriptor getFD() { |
49 public FileDescriptor getFD() { |
50 return ((SocketChannelImpl)sc).getFD(); |
50 return ((InetSocketChannelImpl)sc).getFD(); |
51 } |
51 } |
52 |
52 |
53 public int getFDVal() { |
53 public int getFDVal() { |
54 return ((SocketChannelImpl)sc).getFDVal(); |
54 return ((InetSocketChannelImpl)sc).getFDVal(); |
55 } |
55 } |
56 |
56 |
57 SinkChannelImpl(SelectorProvider sp, SocketChannel sc) { |
57 SinkChannelImpl(SelectorProvider sp, SocketChannel sc) { |
58 super(sp); |
58 super(sp); |
59 this.sc = sc; |
59 this.sc = sc; |