@Test public void testConnect() throws Exception { System.out.println("connect"); SocketAddress remote = new InetSocketAddress("localhost", 123); DatagramChannel result = instance.connect(remote); Assert.assertNotNull(result); }
public DatagramChannel connect(SocketAddress remote) throws IOException { return channel.connect(remote); }
DatagramChannelWithTimeouts extends DatagramChannel { public DatagramChannel connect(SocketAddress remote) throws IOException { return channel.connect(remote); } }
DatagramChannelWithTimeouts extends DatagramChannel { public DatagramChannel connect(SocketAddress remote) throws IOException { return channel.connect(remote); } protected  DatagramChannelWithTimeouts(); }
DatagramChannelWithTimeouts extends DatagramChannel { public DatagramChannel connect(SocketAddress remote) throws IOException { return channel.connect(remote); } protected  DatagramChannelWithTimeouts(); static DatagramChannel open(); @Override DatagramChannel bind(SocketAddress socketAddress); @Override SocketAddress getLocalAddress(); @Override DatagramChannel setOption(SocketOption<T> socketOption, T t); @Override T getOption(SocketOption<T> socketOption); @Override Set<SocketOption<?>> supportedOptions(); int read(ByteBuffer dst); long read(ByteBuffer[] dsts, int offset, int length); int write(ByteBuffer src); long write(ByteBuffer[] srcs, int offset, int length); boolean isConnected(); void setReadTimeout(int t); DatagramSocket socket(); DatagramChannel disconnect(); SocketAddress receive(ByteBuffer dst); int send(ByteBuffer src, SocketAddress target); DatagramChannel connect(SocketAddress remote); SocketAddress getRemoteAddress(); @Override MembershipKey join(InetAddress inetAddress, NetworkInterface networkInterface); @Override MembershipKey join(InetAddress inetAddress, NetworkInterface networkInterface, InetAddress inetAddress1); }
DatagramChannelWithTimeouts extends DatagramChannel { public DatagramChannel connect(SocketAddress remote) throws IOException { return channel.connect(remote); } protected  DatagramChannelWithTimeouts(); static DatagramChannel open(); @Override DatagramChannel bind(SocketAddress socketAddress); @Override SocketAddress getLocalAddress(); @Override DatagramChannel setOption(SocketOption<T> socketOption, T t); @Override T getOption(SocketOption<T> socketOption); @Override Set<SocketOption<?>> supportedOptions(); int read(ByteBuffer dst); long read(ByteBuffer[] dsts, int offset, int length); int write(ByteBuffer src); long write(ByteBuffer[] srcs, int offset, int length); boolean isConnected(); void setReadTimeout(int t); DatagramSocket socket(); DatagramChannel disconnect(); SocketAddress receive(ByteBuffer dst); int send(ByteBuffer src, SocketAddress target); DatagramChannel connect(SocketAddress remote); SocketAddress getRemoteAddress(); @Override MembershipKey join(InetAddress inetAddress, NetworkInterface networkInterface); @Override MembershipKey join(InetAddress inetAddress, NetworkInterface networkInterface, InetAddress inetAddress1);  }