UnreliableDatagramTransport (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.crypto.tls.test

## Class UnreliableDatagramTransport

- java.lang.Object
- - org.bouncycastle.crypto.tls.test.UnreliableDatagramTransport

- All Implemented Interfaces:
    DatagramTransport

      public class UnreliableDatagramTransport
      extends java.lang.Object
      implements DatagramTransport

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UnreliableDatagramTransport(DatagramTransport transport, java.util.Random random, int percentPacketLossReceiving, int percentPacketLossSending)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `int` | `getReceiveLimit()`
    `int` | `getSendLimit()`
    `int` | `receive(byte[] buf, int off, int len, int waitMillis)`
    `void` | `send(byte[] buf, int off, int len)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UnreliableDatagramTransport

          public UnreliableDatagramTransport(DatagramTransport transport,
                                     java.util.Random random,
                                     int percentPacketLossReceiving,
                                     int percentPacketLossSending)

  - ### Method Detail

    - #### getReceiveLimit

          public int getReceiveLimit()
                              throws java.io.IOException

      Specified by:
        `getReceiveLimit` in interface `DatagramTransport`
      Throws:
        `java.io.IOException`

    - #### getSendLimit

          public int getSendLimit()
                           throws java.io.IOException

      Specified by:
        `getSendLimit` in interface `DatagramTransport`
      Throws:
        `java.io.IOException`

    - #### receive

          public int receive(byte[] buf,
                    int off,
                    int len,
                    int waitMillis)
                      throws java.io.IOException

      Specified by:
        `receive` in interface `DatagramTransport`
      Throws:
        `java.io.IOException`

    - #### send

          public void send(byte[] buf,
                  int off,
                  int len)
                    throws java.io.IOException

      Specified by:
        `send` in interface `DatagramTransport`
      Throws:
        `java.io.IOException`

    - #### close

          public void close()
                     throws java.io.IOException

      Specified by:
        `close` in interface `DatagramTransport`
      Throws:
        `java.io.IOException`