Code example for DatagramSocket

Methods: getReceiveBufferSize

0
        } 
    } 
 
    public int getReceiveBufferSize() { 
        try { 
            return socket.getReceiveBufferSize();
        } catch (SocketException e) {
            throw new ChannelException(e);
        } 
    } 
 
    public void setReceiveBufferSize(int receiveBufferSize) {
        try { 
            socket.setReceiveBufferSize(receiveBufferSize);
        } catch (SocketException e) {
            throw new ChannelException(e);
        } 
    } 
 
    public int getSendBufferSize() { 
        try {