Windows Phone在使用socket通信时使用socket.Bind(),socet.Accpet()是不可能的吗? [英] Windows phone using socket communication when socket.Bind (), socet.Accpet () is it impossible?

查看:40
本文介绍了Windows Phone在使用socket通信时使用socket.Bind(),socet.Accpet()是不可能的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如, Windows Phone
ListenSocket =新套接字(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.IP);
int intPortNum = 3333;
ListenSocket.Bind(新的IPEndPoint(IPAddress.Any,intPortNum));
绑定 命令 .. 但是 编程

编程 阶段
while(bSocketEnd == false)
{
套接字ClientSocket =(Socket)ListenSocket.Accept();
}
支付给 接受 a 命令 不存在 .

Windows Phone 套接字通信 之间 尝试 连续性 ,我 不知道该怎么做 .
为什么 Windows Phone C# 命令 令人怀疑 . 下落
请给我 一些 答案 如果有 任何 Windows socket 通信 之间 a 电话 .
我们将等待 ...


답변

For example, Windows Phone
ListenSocket = new Socket (AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
int intPortNum = 3333;
ListenSocket.Bind (new IPEndPoint (IPAddress.Any, intPortNum));
Bind command does not .. but the programming

Also programming phase
while (bSocketEnd == false)
{
Socket ClientSocket = (Socket) ListenSocket.Accept ();
}
Paid to Accept a command does not exist.

Windows Phone socket communication between trying to continuity, I do not know what to do.
Why Windows Phone C # command is doubtful. Fallen
Please give me some answers if there is any Windows socket communication between a phone.
We'll be waiting ...


답변

推荐答案

Windows Phone 7上的套接字只能用于连接到远程主机.  他们无法监听或接受传入的连接.
Sockets on Windows Phone 7 can only be used to connect to remote hosts.  They cannot listen for or accept incoming connections.


这篇关于Windows Phone在使用socket通信时使用socket.Bind(),socet.Accpet()是不可能的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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