OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
IRetunableOsdpConnection.cs
1using System.Threading;
2using System.Threading.Tasks;
3
5{
17 {
26 bool DiscardBuffersBeforeWrite { get; set; }
27
32 void SetBaudRate(int baudRate);
33
44 Task WaitForTransmitCompleteAsync(int frameByteCount, CancellationToken token = default);
45 }
46}
Defines a connection for communicating via OSDP protocol.
A connection whose line rate can be changed while it stays open.
void SetBaudRate(int baudRate)
Changes the baud rate, retuning the connection in place if it is open.
bool DiscardBuffersBeforeWrite
Gets or sets a value indicating whether buffers are discarded before every write.
Task WaitForTransmitCompleteAsync(int frameByteCount, CancellationToken token=default)
Waits until data already written has left the connection.