Top Fields Constructors Methods
org.bouncycastle.tls

public Class UDPTransport

extends Object
implements DatagramTransport
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.DatagramTransport, org.bouncycastle.tls.TlsCloseable, org.bouncycastle.tls.DatagramSender, org.bouncycastle.tls.DatagramReceiver
Imports
java.io.IOException, java.net.DatagramPacket, .DatagramSocket

Field Summary

Modifier and TypeField and Description
protected static final int
protected static final int
protected final int
protected final int
protected final DatagramSocket
protected static final int

Constructor Summary

AccessConstructor and Description
public
UDPTransport(DatagramSocket socket, int mtu)

Method Summary

Modifier and TypeMethod and Description
public void
public int
public int
public int
receive(byte[] buf, int off, int len, int waitMillis)

Implements org.bouncycastle.tls.DatagramReceiver.receive.

public void
send(byte[] buf, int off, int len)

Implements org.bouncycastle.tls.DatagramSender.send.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_IP_OVERHEADback to summary
protected static final int MAX_IP_OVERHEAD
MIN_IP_OVERHEADback to summary
protected static final int MIN_IP_OVERHEAD
receiveLimitback to summary
protected final int receiveLimit
sendLimitback to summary
protected final int sendLimit
socketback to summary
protected final DatagramSocket socket
UDP_OVERHEADback to summary
protected static final int UDP_OVERHEAD

Constructor Detail

UDPTransportback to summary
public UDPTransport(DatagramSocket socket, int mtu) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Implements org.bouncycastle.tls.TlsCloseable.close.

getReceiveLimitback to summary
public int getReceiveLimit()

Implements org.bouncycastle.tls.DatagramReceiver.getReceiveLimit.

getSendLimitback to summary
public int getSendLimit()

Implements org.bouncycastle.tls.DatagramSender.getSendLimit.

receiveback to summary
public int receive(byte[] buf, int off, int len, int waitMillis) throws IOException

Implements org.bouncycastle.tls.DatagramReceiver.receive.

sendback to summary
public void send(byte[] buf, int off, int len) throws IOException

Implements org.bouncycastle.tls.DatagramSender.send.