using System.Net.Sockets;
|
using WIDESEAWCS_QuartzJob;
|
|
namespace WIDESEAWCS_Tasks.Workflow.Abstractions
|
{
|
/// <summary>
|
/// Socket ¿Í»§¶ËÍø¹Ø¡£ÓÃÓÚ¸ôÀë Robot ÒµÎñ¶Ô TcpSocketServer µÄÖ±½ÓÒÀÀµ¡£
|
/// </summary>
|
public interface ISocketClientGateway
|
{
|
Task<bool> SendToClientAsync(string clientId, string message);
|
|
Task SendMessageAsync(TcpClient client, string message);
|
|
IReadOnlyList<string> GetClientIds();
|
|
Task HandleClientAsync(TcpClient client, string clientId, CancellationToken cancellationToken, RobotSocketState robotCrane);
|
}
|
}
|