networking

python sockets, what's the best way to handle several connections at once ?

What's the best way to handle lots of connections at once in python? The first way I think of is threading, which works but at 10MB of RAM per thread that's rather expensive. So what other ways are there to handle lots of connections at once ? The only problem I see without using threads is that using the socket.recv() waits for data f...

Why is inet:/0.0.0.0 interpreted as inet:/0:0:0:0:0:0:0:0 by com.sun.net.httpserver.HttpServer?

We found this issue while implementing a reconnect logic for a WS endpoint using JAX-WS stack deployed on Glassfishv2.1 server. We deploy the web service on a cluster environment. To simplify the deployment, we use 0.0.0.0 as the IP on which the endpoint needs to be published, so that it can be accessed from all available IPs pertaining ...

simulate tcp tahoe with two packet loss using ns2(i.e. network simulator 2) using tcl language

how can i simulate tcp tahoe with two packet loss using ns2(i.e. network simulator 2) using tcl language. ...

Network Service Exception

Hi all, I want to describe DHCP failing in a network. What would you call it? Marns Magnusson has developed the 'Network Service Exception'? ...

Creating a custom FTP Server in .NET?

Suppose I want to create a "custom" FTP server, that is: It will look like a standard FTP server to the outside world It will actually serve data from either in-memory streams of data (dynamically generated by code) or from network streams, instead of from the actual file system Is there an existing FTP server implementation that I ...

Android phone can't see anything through VPN.

I have a Galaxy S (Android 2.1 Update 1), and a Windows 7 Pro machine configured to allow incoming connections (i.e the built-in PPTP VPN functionality). I can establish a VPN connection to the laptop from the phone however I can't ping it or access a simple HTTP service running on 8081. Windows Firewall doesn't seem to be the issue as ...

Android game networking

I need help finding the best method for networking in a multiplayer game. I want to connect to a phone and maintain the connection until the game is over, hosting the game on one of the phones. There are other threads, but none of them really explain how to connect or use the networking, only saying to use such-and-such library. Examp...

Sending data over a network with zero MTU (Maximum Tranmission Unit)

I want to send the data such that the fragmentation of the data is disabled. For example in ping, if we write ping localhost -M do -s 65507 -M do : disable fragmentation -s 65507 : maximum packet size It gives me an error like From localhost (127.0.0.1) icmp_seq=1 Frag needed and DF set (mtu = 16436) Is there some other way to d...

Create a wireless Network in Ubuntu 10.04?

Hello., Whenever i need to copy some files and couldnt find a pen drive, [ i dont have bluetooth enabled in my lap], I create a new ad hoc (wireless) network in windows and share the necessary files on the network and share files with the other system. Now, i want to do the same with Ubuntu. But, i couldn't. I could create a new networ...

How to configure a network

Hello, Need to configure following network. A friend is in another country, and has several limitations on internet there. I'm connected to internet with real IP address. So I want to configure network so that he can connect to me then use internet through my connection, where there are no limitations. So to organize this ? Any reaso...

check how much network traffic is consumed by each process

I want to know how much network traffic is consumed by each process. I would prefer for a crossplatform solution but I guess this is not possible, so I am searching for a solution which works on MacOSX right now. The solution should be lightweight. I want to run it in background and it should analyse all running processes. (Stupid dis...

How to through NAT with PPPoE ?

I want to create a route server to proxy some clients(they may not in the same intranet) to access internet. I need to assign unique ip to the client and get the ip when packets response,so I can do some monitor task. i want to know if I use PPPoE server to deal with this case, how to through NAT ? thanks! ...

How long would it take to transfer a 1GB file over a 1 Gbps connection?

I answered that it would depend on a variety of factors including network latency, packet creation and collation etc. But the interviewer wanted a specific number, to which i answered something like 10 Secs :) ( > 8 secs ). Is there an exact formula for this? ...

How does telnet port forwarding work?

With that command what does really happen? telnet somehost 25 Does it mean that I create a connection between my host and somehost on port 23 with telnet and that telnet of somehost forward it after to the port 25? thank your for your help! cheers Daniel ...