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 intMAX_IP_OVERHEADDeprecated.protected static intMIN_IP_OVERHEADDeprecated.protected intreceiveLimitDeprecated.protected intsendLimitDeprecated.protected java.net.DatagramSocketsocketDeprecated.protected static intUDP_OVERHEADDeprecated.
-
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 voidclose()Deprecated.intgetReceiveLimit()Deprecated.intgetSendLimit()Deprecated.intreceive(byte[] buf, int off, int len, int waitMillis)Deprecated.voidsend(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:
getReceiveLimitin interfaceDatagramTransport
-
getSendLimit
public int getSendLimit()
Deprecated.- Specified by:
getSendLimitin interfaceDatagramTransport
-
receive
public int receive(byte[] buf, int off, int len, int waitMillis) throws java.io.IOExceptionDeprecated.- Specified by:
receivein interfaceDatagramTransport- Throws:
java.io.IOException
-
send
public void send(byte[] buf, int off, int len) throws java.io.IOExceptionDeprecated.- Specified by:
sendin interfaceDatagramTransport- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfaceTlsCloseable- Throws:
java.io.IOException
-
-