summary refs log tree commit diff
path: root/crypto/src/tls/DatagramReceiver.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/DatagramReceiver.cs')
-rw-r--r--crypto/src/tls/DatagramReceiver.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/src/tls/DatagramReceiver.cs b/crypto/src/tls/DatagramReceiver.cs
new file mode 100644
index 000000000..5ab605ac4
--- /dev/null
+++ b/crypto/src/tls/DatagramReceiver.cs
@@ -0,0 +1,14 @@
+using System;
+using System.IO;
+
+namespace Org.BouncyCastle.Tls
+{
+    public interface DatagramReceiver
+    {
+        /// <exception cref="IOException"/>
+        int GetReceiveLimit();
+
+        /// <exception cref="IOException"/>
+        int Receive(byte[] buf, int off, int len, int waitMillis);
+    }
+}