你好 evilsign,
你是在开发商店应用的程序嘛?在商店应用里面只能通过
StreamSocket class 来实现,请参考:Connecting with sockets。
如果你开发的不是商店应用,请在对应的论坛提问。谢谢。
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.