Unity Udexreal开发插件包
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
909 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TouchSocket.Rpc.TouchRpc
{
/// <summary>
/// 带有协议的发送
/// </summary>
public interface IRpcActorSender
{
/// <summary>
/// 发送字节
/// </summary>
/// <param name="protocol"></param>
/// <param name="buffer"></param>
/// <param name="offset"></param>
/// <param name="length"></param>
void Send(short protocol, byte[] buffer, int offset, int length);
/// <summary>
/// 发送字节
/// </summary>
/// <param name="protocol"></param>
/// <param name="buffer"></param>
/// <param name="offset"></param>
/// <param name="length"></param>
Task SendAsync(short protocol, byte[] buffer, int offset, int length);
}
}