OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
IOsdpConnectionListener.cs
1using System;
2using System.Threading.Tasks;
3
5
17public interface IOsdpConnectionListener : IDisposable
18{
22 int BaudRate { get; }
23
30 Task Start(Func<IOsdpConnection, Task> newConnectionHandler);
31
36 Task Stop();
37
41 bool IsRunning { get; }
42
46 int ConnectionCount { get; }
47}
Defines a connection listener for OSDP Peripheral Devices (PDs) that need to accept incoming connecti...
Task Stop()
Stops the listener and terminates any active connections.
int ConnectionCount
Gets the number of active connections currently being managed by this listener.
Task Start(Func< IOsdpConnection, Task > newConnectionHandler)
Starts listening for incoming connections from ACUs.
bool IsRunning
Gets a value indicating whether the listener is currently running and accepting connections.
int BaudRate
Gets the baud rate for serial connections.