init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 387 B |
Binary file not shown.
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Interface.Connection
|
||||
{
|
||||
public interface IConnection: IDisposable
|
||||
{
|
||||
Task<int> SendAsync(byte[] sendBuffer,
|
||||
int bufferStartOffset,
|
||||
int bufferSizeToSend);
|
||||
/// <summary>
|
||||
/// returns true if the unit is soft disconnected
|
||||
/// soft disconnected means we've connected then voluntarily disconnected with the expectation of reconnecting
|
||||
/// </summary>
|
||||
bool IsSoftDisconnected{ get; }
|
||||
/// <summary>
|
||||
/// soft disconnects the unit (voluntarily disconnect with the intention of reconnecting later)
|
||||
/// </summary>
|
||||
void SoftDisconnect();
|
||||
/// <summary>
|
||||
/// reconnects a soft disconnected unit
|
||||
/// </summary>
|
||||
void SoftConnect();
|
||||
|
||||
System.Net.Sockets.SocketFlags Flags { get; set; }
|
||||
|
||||
event EventHandler OnDisconnected;
|
||||
// indicates that the device has not received a timely response to keep-alive
|
||||
void KeepAliveErrorReceived();
|
||||
string ConnectString { get; }
|
||||
|
||||
bool Connected { get; }
|
||||
|
||||
void Create(string connectString);
|
||||
void Create(string connectString, string hostIPAddress);
|
||||
|
||||
string GetConnectionData();
|
||||
|
||||
IAsyncResult BeginConnect(AsyncCallback callback, object callbackObject);
|
||||
|
||||
void EndConnect(IAsyncResult ar);
|
||||
|
||||
IAsyncResult BeginDisconnect(bool reuseSocket, AsyncCallback callback, object state);
|
||||
|
||||
void EndDisconnect(IAsyncResult asyncResult);
|
||||
|
||||
IAsyncResult BeginAccept(AsyncCallback callback,
|
||||
object state);
|
||||
|
||||
IConnection EndAccept(IAsyncResult asyncResult);
|
||||
|
||||
void Bind(int port);
|
||||
|
||||
void Listen(int backlog);
|
||||
|
||||
IAsyncResult BeginSend(byte[] sendBuffer,
|
||||
int bufferStartOffset,
|
||||
int bufferSizeToSend,
|
||||
AsyncCallback callback,
|
||||
object callbackObject);
|
||||
|
||||
int EndSend(IAsyncResult ar);
|
||||
|
||||
IAsyncResult BeginReceive(byte[] receiveBuffer,
|
||||
int bufferStartOffset,
|
||||
int maxSizeToReceive,
|
||||
AsyncCallback callback,
|
||||
object callbackObject);
|
||||
|
||||
int EndReceive(IAsyncResult ar);
|
||||
|
||||
///// <summary>
|
||||
///// current upload rate in b/s
|
||||
///// </summary>
|
||||
///// <returns></returns>
|
||||
//double GetCurrentUploadRate();
|
||||
///// <summary>
|
||||
///// current download rate in b/s
|
||||
///// </summary>
|
||||
///// <returns></returns>
|
||||
//double GetCurrentDownloadRate();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,29 @@
|
||||
using DTS.Common.Enums;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
/// <summary>
|
||||
/// this interface describes the default properties and methods for a digital output
|
||||
/// It's intended to allow interaction with digital output defaults
|
||||
/// 13574 Design for Default squib config file settings
|
||||
/// </summary>
|
||||
public interface IDigitalOutDefaults
|
||||
{
|
||||
/// <summary>
|
||||
/// the default output mode for digital outputs
|
||||
/// </summary>
|
||||
DigitalOutputModes OutputMode{ get; set; }
|
||||
/// <summary>
|
||||
/// the default delay in ms for digital outputs
|
||||
/// </summary>
|
||||
double DelayMS { get; set; }
|
||||
/// <summary>
|
||||
/// the default for whether to limit output duration or not
|
||||
/// </summary>
|
||||
bool LimitDuration { get; set; }
|
||||
/// <summary>
|
||||
/// the default duration in ms to limit duration if limiting duration
|
||||
/// </summary>
|
||||
double DurationMS { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user