通过WiFi的套接字通信在Windows Mobile中不起作用 [英] Socket Communication over WiFi not working in Windows Mobile

查看:106
本文介绍了通过WiFi的套接字通信在Windows Mobile中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用TCP通过WiFi将某些数据发送到台式机.

我在PD中使用TCP侦听器和套接字

我在Windows Mobile中使用TCPClient.

当Mobile连接到PC(不一定是服务器)时,winmo能够发送数据.

但是,当手机连接到wifi时,相同的代码将失败.
我收到"SocketException"

但是我可以ping通服务器.

I am trying to send some data using TCP via WiFi to a desktop PC.

I am using a TCP Listener and socket in the PD

I am using TCPClient in the windows mobile.

When the Mobile is connected to a PC ( not necessarily the server ), the winmo is able to send the data.

But when the mobile is connected to wifi, the same code fails.
I am getting a "SocketException"

But I am able to ping the server.

What may be the reason

推荐答案

AmitDey写道:
AmitDey wrote:

我得到一个"SocketException"

I am getting a "SocketException"



哪个是导致Socket异常的原因很多,您需要捕获错误代码以确定确切的问题.



Which one, there are many causes of Socket Exception, you need to capture the error code to determine the exact problem.


我无法看到该消息,因为它显示了类似


错误消息可用于此异常,但无法显示,因为这些消息是可选消息,并且当前未安装在此设备上.对于Windows Mobile 5.0及更高版本,请安装"NETCFv35.Messages.EN.wb.cab",对于其他平台,请安装"NETCFv35.Messages.EN.cab".重新启动应用程序以查看消息
I am not able to see the message as it says something like


An error message is available for this exception but cannot be displayed because these messages are optional and are not currently installed on this device. Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 5.0 and above or ‘NETCFv35.Messages.EN.cab’ for other platforms. Restart the application to see the message


AmitDey写道:
AmitDey wrote:

因为这些消息是可选的,当前不是安装在此设备上.

because these messages are optional and are not currently installed on this device.



好吧,这显然是您的第一步.如果没有消息代码或相关文本,很难猜测是什么原因导致了您的问题.假设您编写了此程序,则可以尝试在异常捕获器中获取错误代码并显示出来.然后,您应该能够找出代码的含义.



Well that is obviously your first step. It really is very difficult to guess what might be causing your problem without the message code or associated text. Assuming that you wrote this program you could try to get the error code in the exception catcher and display that. You should then be able to find out what the code means.


这篇关于通过WiFi的套接字通信在Windows Mobile中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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