network

How to disable/enable network, switch to Wifi in Android emulator?

I'm working on a Push Notifications library for Android (http://deaconproject.org/) that needs to take action if network connectivity is interrupted or changed - namely, it needs to re-initiate a server connection or pause its operation until network connectivity is available. This seems to work fine using and Android BroadcastReceiver f...

Why do I get HTTP Code 414 on one network but not another?

I have an otherwise working iPhone program. A recent change means that it generates some very long URLs (over 4000 characters sometimes) which I know isn't a great idea and I know how to fix -- that's not what I'm asking here. The curious thing is that when I make the connection using a 3G network (Vodafone UK) I get this HTTP "414 Requ...

How to calculate network usage?

Hi all, How would i go about writing a python script that shows how much internet traffic there is ? Like showing bandwith usage? Thanks! ...

per connection TCP state in Indirect TCP

Hi all, Please tell me the meaning of per connection TCP state in Indirect TCP(wireless networks).Thanks a lot in advance. ...

[python] voice communication for python help!

Hello! I'm currently trying to write a voicechat program in python. All tips/trick is welcome to do this. So far I found pyAudio to be a wrapper of PortAudio. So I played around with that and got an input stream from my microphone to be played back to my speakers. Only RAW of course. But I can't send RAW-data over the netowrk (due the ...

I need aliveness test library for HTTP Servers

Hello, I'm writing a monitor service for our EC2 based cluster, it task will be [connect via HTTP/S to our events servers each X(ms), verify they are alive, rest]. I need a toolkit that will be able to perform the Connect test itself and report success or failure. I've tried to do this with Apache HTTPClient but I'm getting too many fa...

Subversion for web designer: repository on a network share and ftp to the live server?

My configuration: htdocs on a windows network share (z:) web developers check out with dreamweaver modify and check in back to the drive z LAMP running on a Ubuntu server virtualized on Hyper-V with apache that point on the z drive for dev in order to test the websites Upload by FTP on the live server Now: I need multiple access to ...

What about parallelism across network using multiple PCs?

Parallel computing is used more and more, and new framework features and shortcuts make it easier to use (for example Parallel extensions which are directly available in .NET 4). Now what about the parallelism across network? I mean, an abstraction of everything related to communications, creation of processes on remote machines, etc. S...

When [script] file download fails, how can I tell why?

My web application sends me diagnostic info from the browser javascript telling me that a [script] tag I've injected has failed to download the associated .js file. I can't reproduce this locally, and there is no particular pattern to which file fails, or what the browser type is. There is a pattern to the geo location of the requests ...

How are paths determined on a remote machines?

How are paths determined on a remote machines? I have been assigned a network loaction. Let's call it \wassup\test1 I assume that wassup is the ame of the computer. The question I have is this. How can I determine what the local path from the point of view of the remote machine would be for "test1". For example, how would I know if...

how works applications which blocks web sites?

I know only one low-level way of blocking websites - hosts file. However, it is obvious that main stream programs has some other way of achieving this. I have an idea for new model of this kind of program, but without possibility of blocking sites it is useless :( Blocking is one problem, another is filtering and replacing content in ...

Limiting TCP sends with a "to-be-sent" queue and other design issues.

Hello all! This question is the result of two other questions I've asked in the last few days. I'm creating a new question because I think it's related to the "next step" in my understanding of how to control the flow of my send/receive, something I didn't get a full answer to yet. The other related questions are: http://stackoverflow.c...

in c # i need to write a program to measure bandwidth usage per day, week, month etc

How do I go about do this. What API (microsoft and non-microsoft are available) to achieve this? ...

Does more NICs on a server mean potential for more sustained concurrent I/O?

If you're trying to build an application that needs to have the highest possible sustained network bandwidth, for multiple and repetitive file transfers (not for streaming media), will having 2 or more NICs be beneficial? ...

Wake lock does not seem to work.

I'm developing an app in which i need the TCP connection to stay alive. I've implemented a kind of ping/pong system to do this. It works perfectly when the screen is on, but when it goes of the phone stops responding to the pings after a while. I've created a Wi-Fi wake lock but i'm still experiencing still the same problem.. This is my...

Linux / C++: Get Internet IP Address (not local computer's IP)

How can I programmatically get the Internet IP address? 1) If the computer is directly connected to the Internet using a USB modem. 2) If the computer is connected to the internet via another computer or a modem/router. I there a way to do both? P.S. This link gives exactly the Internet IP, but how can I use it in my program? ...

Open/browse a password protected mapped network drive

I just want open a mapped network drive from C# code ,it is apssword protected, so when i try to launch directly it gives exception. Can some one throw light on providing username password while opening the this drive at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start...

Index out of range at "int msgLength = BitConverter.ToInt32(gzBuffer, 0);"

Hello, I am currently working on some game made in C# XNA. Since I need to send a huge chunk of data over net (bout 96kb), I am using some string compressor/decompressor code, which I found on the internet. The code looks like this: public static string Compress(string text) { byte[] buffer = Encoding.UTF8.GetBytes(...

Dynamically find other hosts in a LAN in Java

A while ago I developed a little LAN chat app. in Java which allows chatting with other hosts, send images, etc. Although it was created just for fun, now it's being used where I work. Currently, there is no "chat server" on the app. where each client registers, updates it's status, etc. (I liked the idea of symmetric design and not dep...

Android: Problems downloading images and converting to bitmaps

Hi all, I am working on an application that downloads images from a url. The problem is that only some images are being correctly downloaded and others are not. First off, here is the problem code: public Bitmap downloadImage(String url) { HttpClient client = new DefaultHttpClient(); HttpResponse response = null; try { ...