Sockets Socket.BeginReceive(IList<;ArraySegment<;byte>;buffers.)是否异步?
我一直在寻求实现一个自定义类:Sockets Socket.BeginReceive(IList<;ArraySegment<;byte>;buffers.)是否异步?,sockets,asynchronous,ilist,buffering,beginreceive,Sockets,Asynchronous,Ilist,Buffering,Beginreceive,我一直在寻求实现一个自定义类: IList<ArraySegment<byte>> IList 在测试过程中,我发现 开始接收(IList.) 它阻塞了?!当用BeginReceive(字节[])替换它时,它是异步动作的 还有其他人来过这里吗? 如果需要的话,我会发布我的测试代码,但在我提出这个问题之前,我想听听任何人的意见:) 谢谢!所以!我发现了问题所在 因为我有一个 Console.WriteLine 按我的习惯 IList<ArraySegment<
IList<ArraySegment<byte>>
IList
在测试过程中,我发现
开始接收(IList.)
它阻塞了?!当用BeginReceive(字节[])替换它时,它是异步动作的
还有其他人来过这里吗?
如果需要的话,我会发布我的测试代码,但在我提出这个问题之前,我想听听任何人的意见:)
谢谢!所以!我发现了问题所在
因为我有一个
Console.WriteLine
按我的习惯
IList<ArraySegment<byte>>
IList
然后,该方法没有在编译时异步执行:)可能性有多大
IList<ArraySegment<byte>>