blob: a689515f6e17313624f48a340bb8d37ac8df3dc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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);
#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
/// <exception cref="IOException"/>
int Receive(Span<byte> buffer, int waitMillis);
#endif
}
}
|