|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Defines a connection for communicating via OSDP protocol. More...
Public Member Functions | |
| Task | Open () |
| Open the connection for communications. | |
| Task | Close () |
| Close the connection for communications. | |
| Task | WriteAsync (byte[] buffer) |
| Write to connection. | |
| Task< int > | ReadAsync (byte[] buffer, CancellationToken token) |
| Read from connection. | |
Properties | |
| int | BaudRate [get] |
| Speed of the connection. | |
| bool | IsOpen [get] |
| Is the connection open and ready to communicate. | |
| TimeSpan | ReplyTimeout [get, set] |
| Timeout value waiting for a reply. | |
Defines a connection for communicating via OSDP protocol.
Definition at line 10 of file IOsdpConnection.cs.
| Task OSDP.Net.Connections.IOsdpConnection.Close | ( | ) |
Close the connection for communications.
Implemented in OSDP.Net.Connections.OsdpConnection, OSDP.Net.Connections.ReadOnlySerialPortOsdpConnection, OSDP.Net.Connections.SerialPortOsdpConnection, OSDP.Net.Connections.TcpClientOsdpConnection, and OSDP.Net.Connections.TcpServerOsdpConnection.
| Task OSDP.Net.Connections.IOsdpConnection.Open | ( | ) |
Open the connection for communications.
Implemented in OSDP.Net.Connections.OsdpConnection, OSDP.Net.Connections.ReadOnlySerialPortOsdpConnection, OSDP.Net.Connections.SerialPortOsdpConnection, OSDP.Net.Connections.TcpClientOsdpConnection, and OSDP.Net.Connections.TcpServerOsdpConnection.
| Task< int > OSDP.Net.Connections.IOsdpConnection.ReadAsync | ( | byte[] | buffer, |
| CancellationToken | token ) |
Read from connection.
| buffer | Array of bytes to read |
| token | Cancellation token to end reading of bytes |
Implemented in OSDP.Net.Connections.OsdpConnection, OSDP.Net.Connections.ReadOnlySerialPortOsdpConnection, OSDP.Net.Connections.SerialPortOsdpConnection, OSDP.Net.Connections.TcpClientOsdpConnection, and OSDP.Net.Connections.TcpServerOsdpConnection.
| Task OSDP.Net.Connections.IOsdpConnection.WriteAsync | ( | byte[] | buffer | ) |
Write to connection.
| buffer | Array of bytes to write |
Implemented in OSDP.Net.Connections.OsdpConnection, OSDP.Net.Connections.ReadOnlySerialPortOsdpConnection, OSDP.Net.Connections.SerialPortOsdpConnection, OSDP.Net.Connections.TcpClientOsdpConnection, and OSDP.Net.Connections.TcpServerOsdpConnection.
|
get |
Speed of the connection.
Implemented in OSDP.Net.Connections.OsdpConnection.
Definition at line 13 of file IOsdpConnection.cs.
|
get |
Is the connection open and ready to communicate.
Implemented in OSDP.Net.Connections.OsdpConnection, OSDP.Net.Connections.TcpClientOsdpConnection, and OSDP.Net.Connections.TcpServerOsdpConnection.
Definition at line 18 of file IOsdpConnection.cs.
|
getset |
Timeout value waiting for a reply.
Implemented in OSDP.Net.Connections.OsdpConnection.
Definition at line 23 of file IOsdpConnection.cs.