Package org.bouncycastle.tls.test
Class LoggingDatagramTransport
- java.lang.Object
-
- org.bouncycastle.tls.test.LoggingDatagramTransport
-
- All Implemented Interfaces:
DatagramReceiver,DatagramSender,DatagramTransport,TlsCloseable
public class LoggingDatagramTransport extends java.lang.Object implements DatagramTransport
-
-
Constructor Summary
Constructors Constructor Description LoggingDatagramTransport(DatagramTransport transport, java.io.PrintStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetReceiveLimit()intgetSendLimit()intreceive(byte[] buf, int off, int len, int waitMillis)voidsend(byte[] buf, int off, int len)
-
-
-
Constructor Detail
-
LoggingDatagramTransport
public LoggingDatagramTransport(DatagramTransport transport, java.io.PrintStream output)
-
-
Method Detail
-
getReceiveLimit
public int getReceiveLimit() throws java.io.IOException- Specified by:
getReceiveLimitin interfaceDatagramReceiver- Throws:
java.io.IOException
-
getSendLimit
public int getSendLimit() throws java.io.IOException- Specified by:
getSendLimitin interfaceDatagramSender- Throws:
java.io.IOException
-
receive
public int receive(byte[] buf, int off, int len, int waitMillis) throws java.io.IOException- Specified by:
receivein interfaceDatagramReceiver- Throws:
java.io.IOException
-
send
public void send(byte[] buf, int off, int len) throws java.io.IOException- Specified by:
sendin interfaceDatagramSender- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceTlsCloseable- Throws:
java.io.IOException
-
-