Code example for DatagramChannel

Methods: connect

0
        DatagramChannel c;
 
        @Override 
        protected DatagramChannel getChannel() throws IOException {
            c = DatagramChannelEmul.open();
            c.connect(new InetSocketAddress(53));
            return c;
        } 
    } 
 
    public UDPSamplerTest() { 
    } 
 
    @BeforeClass 
    public static void setUpClass() throws Exception { 
    } 
 
    @AfterClass 
    public static void tearDownClass() throws Exception { 
    }