Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.crypto.tls;
 
 
 public class DTLSTransport
     implements DatagramTransport
 {
     private final DTLSRecordLayer recordLayer;
 
    DTLSTransport(DTLSRecordLayer recordLayer)
    {
        this. = recordLayer;
    }
    public int getReceiveLimit()
        throws IOException
    {
        return .getReceiveLimit();
    }
    public int getSendLimit()
        throws IOException
    {
        return .getSendLimit();
    }
    public int receive(byte[] bufint offint lenint waitMillis)
        throws IOException
    {
        try
        {
            return .receive(bufofflenwaitMillis);
        }
        catch (TlsFatalAlert fatalAlert)
        {
            .fail(fatalAlert.getAlertDescription());
            throw fatalAlert;
        }
        catch (IOException e)
        {
            throw e;
        }
        catch (RuntimeException e)
        {
            throw new TlsFatalAlert(.e);
        }
    }
    public void send(byte[] bufint offint len)
        throws IOException
    {
        try
        {
            .send(bufofflen);
        }
        catch (TlsFatalAlert fatalAlert)
        {
            .fail(fatalAlert.getAlertDescription());
            throw fatalAlert;
        }
        catch (IOException e)
        {
            throw e;
        }
        catch (RuntimeException e)
        {
            throw new TlsFatalAlert(.e);
        }
    }
    public void close()
        throws IOException
    {
        .close();
    }
New to GrepCode? Check out our FAQ X