SockerServer和StreamSocketListener有什么区别 [英] What are the differences between SockerServer and StreamSocketListener

查看:187
本文介绍了SockerServer和StreamSocketListener有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个论坛的新手.如果以上内容不属于该论坛,请转到正确的论坛.谢谢

Hi, New to this forum. If the above does not belong to this forum, please kindly move to the correct one. Thanks

我想构建一个套接字应用程序.

I want to build a socket App.

对于服务器端:

1)  SocketServer和StreamSocketListener之间有什么区别?

1)  what are the differences between SocketServer and  StreamSocketListener?

2)我正在使用Visual Studio 2015社区版本,应该使用哪个版本? SocketServer还是StreamSocketListener?

2) I am using Visual Studio 2015 community version, which one should I use ? SocketServer or StreamSocketListener?

3)我想要服务器端的异步类型套接字

3) I want Asynchronous type socket for the server side

对于客户端:

与哪个客户端一起使用SocketServer或StreamSocketListener无关紧要吗?说客户端是iOS和Android?

Does it matter which client to work with SocketServer or StreamSocketListener ? say the client are iOS and Android?

谢谢

推荐答案

在.NET中,除了Micro框架示例外,我没有其他类型的SocketServer类型.

There is no SocketServer type that I'm aware of in .NET beyond a Micro framework sample. 

StreamSocketListener用于UWA应用程序,并且是套接字上传入连接的侦听器.如果您对此类型还有其他疑问,请在Universal Windows App论坛中发布.

StreamSocketListener is for UWA apps and is a listener for incoming connections on a socket.  If you have further questions about this type then please post in the Universal Windows App forums.

VS社区可用于构建任何类型的.NET应用程序.

VS Community can be used to build any type of .NET application.

套接字支持异步,因为这是通信介质的本质.您可以使用任何.NET套接字类来执行此操作,但是您所针对的平台会对此产生影响.

Sockets support async as that is the nature of the communication medium. You can use any .NET socket class to do this but what platform you are targeting will impact that.

与iOS和Android开发有关的问题需要在Xamarin论坛上发布.

Questions related to iOS and Android development need to be posted in the Xamarin forums.

迈克尔·泰勒
http://www.michaeltaylorp3.net

Michael Taylor
http://www.michaeltaylorp3.net


这篇关于SockerServer和StreamSocketListener有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆