コード例 #1
0
        public async Task <byte[]> SendAsync(IEasyChannel channel, [NotNull] byte[] buffer, int millisecondsTimeout = -1)
        {
            if (buffer is null)
            {
                throw new ArgumentNullException(nameof(buffer));
            }

            return(await channel.SendAsync(buffer, millisecondsTimeout));
        }
コード例 #2
0
ファイル: EasyTcp.cs プロジェクト: ismyhy/Plugins.ToolKits
 protected virtual void AcceptChannel(IEasyChannel channel)
 {
 }
コード例 #3
0
ファイル: EasyTcp.cs プロジェクト: ismyhy/Plugins.ToolKits
 public Task <byte[]> SendAsync([NotNull] IEasyChannel channel, [NotNull] byte[] buffer, int millisecondsTimeout = -1)
 {
     return(channel.SendAsync(buffer, null, millisecondsTimeout));
 }