Code example for DatagramChannel

Methods: disconnect

0
    public DatagramSocket socket() {
        return channel.socket();
    } 
 
    public DatagramChannel disconnect() throws IOException {
        return channel.disconnect();
    } 
 
    public SocketAddress receive(ByteBuffer dst) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    } 
 
    public int send(ByteBuffer src, SocketAddress target) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    } 
 
    public DatagramChannel connect(SocketAddress remote) throws IOException {
        return channel.connect(remote);
    } 
}