简体   繁体   English

Windows Phone 7/8是否支持应用程序级套接字?

[英]Does the windows phone 7/8 support application-level sockets?

I want to implement a chat application and I would like to know if the windows phone 7/8 supports application-level sockets ? 我想实现一个聊天应用程序,我想知道Windows Phone 7/8是否支持应用程序级套接字?

Is there any sample code for this ? 有没有示例代码?

Yes, Windows Phone from 7.1 supported TCP/UDP sockets. 是的,7.1的Windows Phone支持TCP / UDP套接字。 Windows Phone 8 supports additionally socket connections via Bluetooth, and other proximity technologies as well as web sockets. Windows Phone 8还支持通过蓝牙和其他邻近技术以及Web套接字进行插座连接。

A chat sample is show in this tutorial on UDP broadcast sockets: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286407(v=vs.105).aspx 本教程中将在UDP广播套接字上显示聊天示例: http//msdn.microsoft.com/en-us/library/windowsphone/develop/hh286407( v = vs.105).aspx

There are other samples available for IM-style clients too. 还有其他样本可供IM风格的客户使用。

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

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