Code example for DatagramChannel

Methods: socket

0
    public void setReadTimeout(int t) {
        readTimeout = t;
    } 
 
    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 {