Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class UDPTransport

java.lang.Object
  extended byorg.bouncycastle.crypto.tls.UDPTransport
All Implemented Interfaces:
DatagramTransport, TlsCloseable

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class UDPTransport
extends java.lang.Object
implements DatagramTransport


Field Summary
protected static int MAX_IP_OVERHEAD
          Deprecated.  
protected static int MIN_IP_OVERHEAD
          Deprecated.  
protected  int receiveLimit
          Deprecated.  
protected  int sendLimit
          Deprecated.  
protected  java.net.DatagramSocket socket
          Deprecated.  
protected static int UDP_OVERHEAD
          Deprecated.  
 
Constructor Summary
UDPTransport(java.net.DatagramSocket socket, int mtu)
          Deprecated.  
 
Method Summary
 void close()
          Deprecated.  
 int getReceiveLimit()
          Deprecated.  
 int getSendLimit()
          Deprecated.  
 int receive(byte[] buf, int off, int len, int waitMillis)
          Deprecated.  
 void send(byte[] buf, int off, int len)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_IP_OVERHEAD

protected static final int MIN_IP_OVERHEAD
Deprecated. 
See Also:
Constant Field Values

MAX_IP_OVERHEAD

protected static final int MAX_IP_OVERHEAD
Deprecated. 
See Also:
Constant Field Values

UDP_OVERHEAD

protected static final int UDP_OVERHEAD
Deprecated. 
See Also:
Constant Field Values

socket

protected final java.net.DatagramSocket socket
Deprecated. 

receiveLimit

protected final int receiveLimit
Deprecated. 

sendLimit

protected final int sendLimit
Deprecated. 
Constructor Detail

UDPTransport

public UDPTransport(java.net.DatagramSocket socket,
                    int mtu)
             throws java.io.IOException
Deprecated. 
Method Detail

getReceiveLimit

public int getReceiveLimit()
Deprecated. 
Specified by:
getReceiveLimit in interface DatagramTransport

getSendLimit

public int getSendLimit()
Deprecated. 
Specified by:
getSendLimit in interface DatagramTransport

receive

public int receive(byte[] buf,
                   int off,
                   int len,
                   int waitMillis)
            throws java.io.IOException
Deprecated. 
Specified by:
receive in interface DatagramTransport
Throws:
java.io.IOException

send

public void send(byte[] buf,
                 int off,
                 int len)
          throws java.io.IOException
Deprecated. 
Specified by:
send in interface DatagramTransport
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Deprecated. 
Specified by:
close in interface TlsCloseable
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.64