简体   繁体   English

现实生活(无回显服务器)需要 SocketAsyncEventArgs 教程

[英]Real life (NO echo server) SocketAsyncEventArgs tutorial needed

Does anybody have know any sample/tutorial (a sample server using SocketAsyncEventArgs etc) code about the the enhanced asynchronous socket pattern introduced in .net 3.5?有人知道关于 .net 3.5 中引入的增强异步套接字模式的任何示例/教程(使用SocketAsyncEventArgs等的示例服务器)代码吗? ( http://msdn.microsoft.com/en-us/library/bb968780.aspx ) http://msdn.microsoft.com/en-us/library/bb968780.aspx

Pls.请。 don't send me any samples with those well konown echo servers, they're not useful in this topic, they hide the some important things must be understood in this topic.不要向我发送任何带有知名回显服务器的示例,它们在本主题中没有用处,它们隐藏了本主题中必须了解的一些重要内容。 Sample server should recieve data and send back something completely new/different to the client.示例服务器应接收数据并将全新/不同的内容发送回客户端。

Thanks in advance!提前致谢!

I believe this tutorial from codeproject should give you what you are looking for.我相信这个来自 codeproject 的教程应该会给你你正在寻找的东西。

The tutorial seems pretty in depth and it consists of a server / client component.该教程看起来很深入,它由一个服务器/客户端组件组成。 I think that part should satisy the constraint of not useing an echo server as you have access to the server as well as it's code for additional information.我认为这部分应该满足不使用回显服务器的限制,因为您可以访问服务器以及它的代码以获取更多信息。

Hope this helps希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM