Quantcast
Channel: Everyday I'm coding » networking
Browsing latest articles
Browse All 10 View Live

How to check internet access on Android? InetAddress never timeouts

I got a AsyncTask that is supposed to check the network access to a host name. But the doInBackground is never timed out. Anyone have a clue? public class HostAvailabilityTask extends...

View Article



Virtualbox host-guest network setup [closed]

How do I set up a network between the Host and the guest OS in Windows vista? Solution: Give the guest two network adapters, one NAT and the other Host-only. The NAT one will allow the guest to see the...

View Article

How to set a timeout with AFNetworking

My project is using AFNetworking https://github.com/AFNetworking/AFNetworking How do i dial down the timeout? Atm with no internet connection the fail block isnt triggered for what feels like about...

View Article

How can I connect to Android with ADB over TCP?

I am attempting to debug an application on a Motorola Droid but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64bit VM running in HyperV and so I...

View Article

A clean, lightweight alternative to Python’s twisted?

A (long) while ago I wrote a web-spider that I multithreaded to enable concurrent requests to occur at the same time. That was in my Python youth, in the days before I knew about the GIL and the...

View Article


Image may be NSFW.
Clik here to view.

How do I know whether my iPhone/iPad is connected to 2G or 3G?

I was trying to check wether the device is connected via 2G (GPRS, EDGE) or 3G (UMTS, HSDPA). I only found the Reachability example class from here (Apple Dev Example) This example only check wether...

View Article

Windows packet sniffer that can capture loopback traffic?

(This is a followup to my previous question about measuring .NET remoting traffic.) When I am testing our Windows service / service controller GUI combination, it is often most convenient to run both...

View Article

How can you find out which process is listening on a port on Windows?

How can you find out which process is listening on a port on Windows? Solution: C:\> netstat -a -b (add -n to stop it trying to resolve hostnames, which will make it a lot faster) Edit: +1 for...

View Article


In linux , using c programming , and how to know the eth0 mode is static or dhcp

I want to got know how to using c program to get the ip of network interface is setting by manual or via dhcp. Thanks! i’d try to using this and it’s work in debian ,but it cannot be working in...

View Article


Finding local IP addresses using Python’s stdlib

How can I find the local IP address (i.e. 192.168.x.x or 10.0.x.x) in Python platform independently and using only the standard library? Solution: import socket...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images