Code example for DatagramSocket

Methods: getTrafficClass

0
        } 
    } 
 
    public int getTrafficClass() { 
        try { 
            return socket.getTrafficClass();
        } catch (SocketException e) {
            throw new ChannelException(e);
        } 
    } 
 
    public void setTrafficClass(int trafficClass) {
        try { 
            socket.setTrafficClass(trafficClass);
        } catch (SocketException e) {
            throw new ChannelException(e);
        } 
    } 
 
    public ReceiveBufferSizePredictor getReceiveBufferSizePredictor() { 
        ReceiveBufferSizePredictor predictor = this.predictor;