wanshenmean
2026-03-17 737dec3c384f394fd6f9849b4480b697d1ba35d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
    }
}