jjzjj

AsyncUserToken

全部标签

c# - SocketAsyncEventArgs 示例 : How to make the sample works? 中缺少 AsyncUserToken 类

我正在研究TCP多线程服务器和客户端。我从微软网站上找到了一些代码:http://msdn.microsoft.com/en-us/library/system.net.sockets.socketasynceventargs.aspx但是我得到了以下错误:Thetypeornamespacename'AsyncUserToken'couldnotbefound(areyoumissingausingdirectiveoranassemblyreference?)即使在Google上搜索,我也找不到要包含的命名空间,以下是我目前拥有的命名空间:usingSystem;usingSyst