wifi

iOS6 toggle WiFi on non-jailbroken device

我只是一个虾纸丫 提交于 2019-12-12 22:19:53
问题 I am developing an in-house iOS application ( NOT FOR APPLE STORE , so I am happy to go for private API) and I would like to be able to toggle the wifi on or off programmatically. The reason for why I want to do this is that with some WiFi routers whenever the internet connection is interrupted it happens that iPad is not able to restore the WiFi - toggling the WiFi on/off solves the problem however. After searching around for a day on SO and Google I could not find any recent posts. Is it

Application - Direct file sharing over Wifi in android

冷暖自知 提交于 2019-12-12 17:27:14
问题 I want to make an application that, when running on 2 different android phones over the same Wifi network, allows them to share files directly (not via internet). But i am stuck where to start from. Keywords of techniques and why they could be required would be much appreciated. Thanks in advance 回答1: Here you can find the example of android direct file sharing over wifi network Click here 回答2: you can start with multicast socket with TCP or UDP protocol. try this link MulticastSocket 来源:

iPhone Wifi Scan Stumbler

吃可爱长大的小学妹 提交于 2019-12-12 16:34:20
问题 I am trying to use the SOLStumbler from here: Accessing & Using the MobileWiFi.framework to scan for wifi networks. I am aware that this is not supported by apple but it is for educational purposes and experiments. I add the following files to my application and it compiles fine but it always exits with an error code. (As part of the ".m" file.) Does anyone know how to get this working? SOLStumbler.h: SOLStumbler.m: This part of SOLStumbler.m always outputs a single letter error. Normally e

What is the WEP shared-key authentication algorithm

一笑奈何 提交于 2019-12-12 12:02:15
问题 I'm reading a book named 802.11 Wireless Networks The Definitive Guide(second edition) recently. I find myself unable to understand the algorithm of WEP shared-key authentication. In the book, chapter 8.3, section "The legacy of shared-key authentication", it says The third frame is the mobile station's response to the challenge. To prove that it is allowed on the network, the mobile station constructs a management frame with three information elements: the Authentication Algorithm Identifier

how to share files with other Mob phone connected to the same network with which you are connected?

本小妞迷上赌 提交于 2019-12-12 08:17:04
问题 I want to share file from my Mob Phone to other Mob Phone which are connected to the same network with which i am connected, is it can do easily with tcp or dhcp or socket, please i don't know about all of these also. 回答1: yes u can share the file through socket communication. Implement the server socket from the device which has the file. And client socket in the other device. here is the link which shows simple socket communication http://www.javaworld.com/jw-12-1996/jw-12-sockets.html Once

Network broadcast/multicast not sent by iPhone in personal hotspot mode

你说的曾经没有我的故事 提交于 2019-12-12 07:59:03
问题 Based on recent empirical findings, and based on various posts on the web, it seems that an application running on an iPhone with personal hotspot enabled cannot send broadcasts and/or multicasts out onto the personal hotspot's network. Can anyone shed light on the cause of this problem? The Application I have an IOS application, built with cross-platform C++ code, that broadcasts and multicasts its presence onto the network it is running on. The application works flawlessly when the iPhone

Enable / disable wifi via bash scripting on Android

非 Y 不嫁゛ 提交于 2019-12-12 07:48:56
问题 I am trying to enable / disable the wifi device in my android device in a bash script. I am using the terminal emulator and the program Script Manager to execute bash scripts on the phone (which is a rooted Nexus One). The normal way to do this in linux would be something like ifconfig eth0 up That gives me "eth0: no such device" Trying iwconfig eth0 gives the same, and iwconfig gives a list of devices with no eth0 on it. Now if I turn on wifi (manually from the GUI) and type iwconfig it

Android: How to get current device WiFi-direct name

社会主义新天地 提交于 2019-12-12 07:17:32
问题 In a P2P setting, I understand how to get another device's name, but how do I get my own device's name? (the one displayed in WiFi-direct under settings). I have checked WiFiManager , WiFiInfo , and more with no success. 回答1: After you turn on wifi on your device, it is send a WIFI_P2P_THIS_DEVICE_CHANGED_ACTION broadcast. You can catch this with a broadcast receiver and you can get a WifiP2pDevice object, that is your device. @Override public void onReceive(Context context, Intent intent) {

Is it possible to directly print content to a wifi-connected printer without user interaction in android programming?

天涯浪子 提交于 2019-12-12 05:49:22
问题 I am working on a android project. One key requirement is to print receipt via a wifi-connected printer. At this stage, what I have achieved is to open a printer dialog. Then the printer dialog allows user to interact to select a list of available printers and then tap print. But I hope there is a way to avoid user interaction and directly print the content like html file, image etc. this is the code for printing a bitmap image. private void doPhotoPrint() { PrintHelper photoPrinter = new

Basic networking: browsing to Rails site running on another machine

巧了我就是萌 提交于 2019-12-12 05:15:37
问题 I'm running a Rails site on computer A. I start the site with rails server and browse to it at http://localhost:3000 . Computer B is on the same WIFI network. From computer B I can visit my site at http://192.x.y.z:3000 where the IPv4 address of computer A is obtained from ifconfig in the OS X Terminal. How can I browse to my site (running on computer A) from computer B without using the wireless router? I'll still have WIFI enabled on both computers. However I don't want the computers to