summary refs log tree commit diff
path: root/crypto/src/tls/DatagramSender.cs
blob: c2a987b518c4eda9a81dd1fa2cb5fd0170c1a5a8 (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 DatagramSender
    {
        /// <exception cref="IOException"/>
        int GetSendLimit();

        /// <exception cref="IOException"/>
        void Send(byte[] buf, int off, int len);

#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
        /// <exception cref="IOException"/>
        void Send(ReadOnlySpan<byte> buffer);
#endif
    }
}