org.bouncycastle.crypto.tls
Class UDPTransport
java.lang.Object
org.bouncycastle.crypto.tls.UDPTransport
- All Implemented Interfaces:
- DatagramTransport
public class UDPTransport
- extends java.lang.Object
- implements DatagramTransport
Constructor Summary |
UDPTransport(java.net.DatagramSocket socket,
int mtu)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDPTransport
public UDPTransport(java.net.DatagramSocket socket,
int mtu)
throws java.io.IOException
- Throws:
java.io.IOException
getReceiveLimit
public int getReceiveLimit()
- Specified by:
getReceiveLimit
in interface DatagramTransport
getSendLimit
public int getSendLimit()
- Specified by:
getSendLimit
in interface DatagramTransport
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