问题标签 [3g-network]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
11882 浏览

java - 连接到3G移动网络时获取android设备的IP地址

当我连接到 WiFi 时,我可以获取 Android 手机的 IP 地址。

但是,在3G等移动网络上,是否还能获取到安卓手机的IP地址呢?
如果是,请发布相同的代码。

0 投票
3 回答
290 浏览

iphone - iOS - UIWebview - 3G 上的评论被剥离

我正在请求包含评论的 UIWebView 中的网页(这些评论是不可或缺的,因为它们包含 UIWebView 用于调整设置的隐藏信息)。

通过 Wifi 可以正常工作,但是通过 3G 从 UIWebView(使用 Javascript)查询源返回的输出中删除了所有空白和注释。

我的第一直觉是,它是服务器应用压缩,但客户端拒绝同样多,iOS 中是否存在请求这个的设置,或者 3G 网络运营商(在这种情况下为 O2 - UK)正在剥离内容。

有人看到这个,或者知道解决方案吗?

提前谢谢了!

0 投票
1 回答
188 浏览

iphone - ios如何从3g获取互联网数据和从Wifi获取应用程序特定数据

问题社区。我目前正在做这个应用程序,我想根据服务器应用程序不断更新的坐标点记录地图视图上的位置。服务器应用程序使用 wifi 发送此信息,我可以看到当数据进入时我正在更新注释的位置。当我尝试放大地图视图时出现问题,它似乎被像素化了。我做了一些试验,结果发现由于某种原因,iphone 没有更新 mapview 的图块,因为它试图从 wifi 连接而不是 3g 连接获取数据。

我的问题是,我如何(如果可能)强制 mapview 从 3g 连接获取它的图块更新。我知道我可以走“离线地图”路线,但是我想看看这是否可以做到。

非常感谢你。

0 投票
1 回答
1324 浏览

python - Writing to a remote MySql DB with Python

I'm new to coding so I do apologise for any blatant faux pas I may made in my design concept.

I am looking to design a very basic app using Python which will scan for Access Points and log their details in a remote MySql database. My code works fine at present and writes the information to a locally held database no problem but now my query is, what pitfalls will their be when looking to insert the values into a remote DB? The broadband connection will be a 3G mobile connection and my concern is, if ran in a blackspot with no 3G coverage, how can I stall it so that the data is just held locally until coverage returns?

Here's my code thusfar:-

As said, the code works fine and so it's not really a question about my code but more about what I should consider when using a remote MySql DB and mobile broadband coverage. As I will be scanning access points whilst out and about, I am aware that I could have no 3G coverage for 10 minutes for example and will have detected, say 200 access points so just wondering how is best to deal with this? Write them to RAM, a temp file or a local DB and then update when 3G connection is back in place?

Thanks

0 投票
3 回答
2996 浏览

java - 用java实现SCTP?

如何用java实现网关和服务器之间的SCTP协议?

0 投票
5 回答
5824 浏览

android - 如何在android中检查3g是否处于活动状态

我正在尝试检查手机中的 3G 是否处于活动状态,然后我必须触发 Intent。所以请任何人帮助我提前谢谢:)

0 投票
2 回答
821 浏览

iphone - 使用 2G、3G、4G 网络的 iPhone 应用程序

我想根据网络的可用性开发一个能够使用 2G 3G 或 4G 的应用程序。因为这个应用程序将在不同的国家使用,并且在某些国家/地区仅支持 2G,而有些国家/地区支持 3G 或 4G .. 我有点困惑我的应用程序是否会自动使用可用的最快网络,或者我必须明确每个人的代码。

0 投票
0 回答
892 浏览

iphone - 3G/WWAN 上的 Game Center 多人游戏 - getLocalConnectionData 超时

我有一个使用 GameCenter 进行联网的多人游戏。使用 GKMatch 的 wifi 网络游戏完美运行,但超过 3G 时它们无法连接。我的

使用错误代码 503 调用完成处理程序块,这不是GKErrorDomainCode根据该标头。相反,它似乎是一个 HTTP 错误代码。

这是我的代码:

SNJGKLocalPlayerManager只需将玩家登录到 GameCenter。典型的输出将是第一个 dispatch_async 块中的行中的UIAlertView“操作无法完成。getLocalConnectionData超时”。如果我用于NSLog输出错误代码,则为 503。

如果你已经GameCenter让多人在 3G 上工作并且不想仔细研究我的代码,请随时分享你的工作代码,我会尝试找出我的问题所在!谢谢!

0 投票
1 回答
334 浏览

objective-c - 如何以编程方式通过 ipad 检测并连接到 3G 网络

我想使用 3G 网络连接,通过服务器发送数据,目前我正在使用iOS 开发者库 - 可达性,通过它我可以检测和连接 WiFi 网络,它对我来说工作正常。

但是现在我想用3G网络来做同样的事情。

谁能帮我做同样的事情。

0 投票
2 回答
8488 浏览

android - 如何从 3G 和 2G/EDGE 反之切换?

我正在尝试通过代码将网络偏好从 3G 切换到 2G/EDGE,反之亦然。我可以打开和关闭移动数据连接。现在我需要知道如何通过代码在 3G 和 2G/EDGE 之间切换,反之亦然。有人可以在这里帮助我吗?提前致谢。