Package org.bouncycastle.crypto.tls
Class UDPTransport
- java.lang.Object
-
- org.bouncycastle.crypto.tls.UDPTransport
-
- All Implemented Interfaces:
DatagramTransport
,TlsCloseable
public class UDPTransport extends java.lang.Object implements DatagramTransport
Deprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description UDPTransport(java.net.DatagramSocket socket, int mtu)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-
Method Detail
-
getReceiveLimit
public int getReceiveLimit()
Deprecated.- Specified by:
getReceiveLimit
in interfaceDatagramTransport
-
getSendLimit
public int getSendLimit()
Deprecated.- Specified by:
getSendLimit
in interfaceDatagramTransport
-
receive
public int receive(byte[] buf, int off, int len, int waitMillis) throws java.io.IOException
Deprecated.- Specified by:
receive
in interfaceDatagramTransport
- Throws:
java.io.IOException
-
send
public void send(byte[] buf, int off, int len) throws java.io.IOException
Deprecated.- Specified by:
send
in interfaceDatagramTransport
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
Deprecated.- Specified by:
close
in interfaceTlsCloseable
- Throws:
java.io.IOException
-
-