wireless

“no route to host” on device on getOutputStream() - connected wirelessly

孤街浪徒 提交于 2019-12-02 14:56:43
问题 private String urlPost = "http://192.168.1.66:8080/DataCollectionServlet/"; @Override protected void doWakefulWork(Intent intent) { // https://stackoverflow.com/q/14630255/281545 HttpURLConnection connection = null; try { connection = connection(); w("connection"); // allrigt final OutputStream connOutStream = connection.getOutputStream(); w("GEToUTPUTsTREAM"); // I never see this } catch (IOException e) { e.printStackTrace(); // No route to host } finally { if (connection != null) connection

How to learn the structure of Linux wireless drivers (mac80211)?

烈酒焚心 提交于 2019-12-02 14:19:35
There is so many structures in the Linux wireless driver mac80211. Things like struct net_device , struct ieee80211_hw , struct ieee80211_vif and struct ieee80211_local and so on. So many structures that I don't understand what information they contain and when them were initialized. How can I learn about them and the whole architecture of wireless drivers? eyalsh You may want to check out Johannes Berg's (mac80211 maintainer) slides here: http://wireless.kernel.org/en/developers/Documentation/mac80211?action=AttachFile&do=get&target=mac80211.pdf They may be somewhat outdated but should give

Raw WiFi Packets with WinPcap

落爺英雄遲暮 提交于 2019-12-02 13:33:55
问题 Consider the simple C code to send a single raw packet with WinPcap. The lines related with building the packet header starts with the following comment: /* Supposing to be on ethernet, set mac destination to 1:1:1:1:1:1 */ Therefore you might guess that, in order to send a Raw WiFi Packet, you should change this block of the code accordingly. However, this is not the case. You can send a Raw WiFi Packet without changing one single line of that code, just filling the right MAC addresses. The

“no route to host” on device on getOutputStream() - connected wirelessly

♀尐吖头ヾ 提交于 2019-12-02 08:34:55
private String urlPost = "http://192.168.1.66:8080/DataCollectionServlet/"; @Override protected void doWakefulWork(Intent intent) { // https://stackoverflow.com/q/14630255/281545 HttpURLConnection connection = null; try { connection = connection(); w("connection"); // allrigt final OutputStream connOutStream = connection.getOutputStream(); w("GEToUTPUTsTREAM"); // I never see this } catch (IOException e) { e.printStackTrace(); // No route to host } finally { if (connection != null) connection.disconnect(); } } private HttpURLConnection connection() throws MalformedURLException, IOException {

Is it possible to disable wireless networking using the Android SDK or NDK?

北城以北 提交于 2019-12-01 22:53:48
问题 Is it possible to disable wireless networking on an Android device using the Android SDK or NDK? 回答1: In order to enable / disable the WiFi state, you have to grant the following permission in the application manifest android.permission.CHANGE_WIFI_STATE You can then use the WifiManager to set enable/disable the WIFI. WifiManager wifiManager = (WifiManager)getBaseContext().getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(enabled); More info on http://developer.android.com

Is it possible to disable wireless networking using the Android SDK or NDK?

一笑奈何 提交于 2019-12-01 21:54:40
Is it possible to disable wireless networking on an Android device using the Android SDK or NDK? In order to enable / disable the WiFi state, you have to grant the following permission in the application manifest android.permission.CHANGE_WIFI_STATE You can then use the WifiManager to set enable/disable the WIFI. WifiManager wifiManager = (WifiManager)getBaseContext().getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(enabled); More info on http://developer.android.com/reference/android/net/wifi/WifiManager.html For a complete sample, check the following post : http://android

Wireless Debugging in Xcode4.2

那年仲夏 提交于 2019-12-01 17:41:34
When I use wireless debugging in Xcod e4.2 it tells me: Don't know how to run. Try "help target". Please see " Wireless debugging in xcode " for more information. Wireless debugging in Xcode 4.2 is still really unstable. I've only been able to get it up and running once or twice before needing to restart Xcode, disabling and reenabling wireless device support, restarting the device, and deleting the app from the device before trying it again (not necessarily in this order). Hopefully they'll get it working better soon. 来源: https://stackoverflow.com/questions/7992491/wireless-debugging-in

Using Cocoa / Objective-C, get currently connected network's security type in Mac OS X

只谈情不闲聊 提交于 2019-12-01 09:46:57
How do I get the security type (and other information) of the currently connected network in Airport in my Objective-C / Cocoa program? See the apple documentation on the SysConfig API, which allows you to read that and many properties of network connections: http://developer.apple.com/library/mac/#documentation/Networking/Reference/SysConfig/index.html 来源: https://stackoverflow.com/questions/4021095/using-cocoa-objective-c-get-currently-connected-networks-security-type-in-ma

Anaconda 3 Spyder appears to be causing internet outages on Windows 10

房东的猫 提交于 2019-12-01 09:07:35
I have a repeatable problem with my laptop (an HP G4 250 that came with windows 10). I can be happily on the Internet, but opening Spyder causes the Internet to immediately die. Now, the system does something rather unusual. I am not disconnected from the router, and the wireless icon still says I am connected and have Internet access. But streams crash, webpages refuse to load and say there is no internet connection, and I can;t even access my router's config page. Closing Spyder fixes the problem. Not instantly, but when Spyder is open, it creates several pythonw.exe network requests (seen

Anaconda 3 Spyder appears to be causing internet outages on Windows 10

半腔热情 提交于 2019-12-01 06:40:48
问题 I have a repeatable problem with my laptop (an HP G4 250 that came with windows 10). I can be happily on the Internet, but opening Spyder causes the Internet to immediately die. Now, the system does something rather unusual. I am not disconnected from the router, and the wireless icon still says I am connected and have Internet access. But streams crash, webpages refuse to load and say there is no internet connection, and I can;t even access my router's config page. Closing Spyder fixes the