networking

Is MPI good for high-volume soft-realtime IPC ?

If I had a single server and I had two process types A(Many processes many threads) and B(one process n-threads with n-cpu's), and I wanted to send a LARGE amount of one-way messages from A to B. Is MPI a better implementation for this than a custom implementation using: Unix Domain Sockets Windows Named Pipes Shared Memory I was thi...

Socket communication on a machine with more than 1 IP address

I have a service which listens for incoming connections on a TCP\IP port number say 7000. Also my machine is having more than 1 NIC cards and more than 1 IP address.( in other words i am having 2 LANs, LAN and LAN2 and 2 Ips). Now I have configured my client application(in another machine with only 1 IP) to establish a connection to my ...

Assets Management in a clustered environment

Hello, I have a content management system running on a web server, that among others allows the user to upload assets like images, files, etc to the server. The problem i have is that there will be 2 servers running behind a load balancer and i am trying to find an efficient way to handle the assets management. The question i have is: ...

Pinging first available host in network subnets

I've written a small script in Python that pings all subnets of my school's wireless network and prints out the IP addresses and hostnames of computers that are connected to each subnet of the network. My current setup is that I'm relying on creating threads to handle each of the ping requests. from threading import Thread import subpr...

Transparent Proxy for Windows XP

I have an experimental TCP/IP stack running under Windows XP. This stack bypasses the Windows TCP/IP stack using a LSP and a NDIS IM. I now have a requirement to provide a proxy service for this to support other platforms that want to use the experimental stack. The proxy must be transparent to the clients (no client configuration). I wa...

network ports IO

if I telnet two different servers at the same port from my pc, would one finish until the other one's done? does the outgoing port only allow one outgoing connection at a time? ...

Network programming: Python vs. C for a complete beginner

Hi, I am looking for a few pointers, I got pointed to this site. My primary interest is network programming. I have done quite a bit of reading and experimenting and am familiar with mechanisms of most protocols. Now I want to start writing code. I read introductory stuff on python and grasped it well too. I had just started playing wit...

C or Python best for learning network programming?

My primary interest is network programming. I have done quite a bit of reading and experimenting and am familiar with mechanisms of most protocols. Now I want to start writing code. I read introductory stuff on python and grasped it well too. I had just started playing with the python modules, when I met somebody (with a tall reputation)...

Networking Method

Hey guys, Iv'e noticed that when I send a complete packet (collect it's data in a buffer and send) it is much slower than sending the packet byte by byte. Will it be okay if I make an online game using this method? ...

Synchronizing time between simple python-socket-based server and clients

I have the beginnings of a small multiplayer game that I'm writing in python as a learning exercise. Currently the server runs at 10 fps, while the clients run at whatever rate they like. This works well to conserve bandwidth, but unless the client tells the server when its input happened, all input gets quantized to 100ms intervals. How...

BlackBerry - Exception when sending SMS

This code fails, sending a text message to a mobile number. It throws an exception with message: "blocking operation not permitted on event dispatch thread". So I created a separate thread to execute the SMS code, but I am still observing the same exception. What am I doing wrong? class DummyFirst extends MainScreen { private Bi...

How do you you run a Twisted application via Python (instead of via Twisted)?

I am working my way through learning Twisted, and have stumbled across something I'm not sure I'm terribly fond of - the "Twisted Command Prompt". I am fiddling around with Twisted on my Windows machine, and tried running the "Chat" example: from twisted.protocols import basic class MyChat(basic.LineReceiver): def connectionMade(s...

Why blackberry apps cannot do network i/o AT ALL outside of North America without BIS?

I was told by a consultant in a 3 hours discussion that basically blackberry 3rd party apps (Distributed through AppWorld or not) cannot perform any network I/O outside of North America without becoming an alliance member. Is this true? Basically the story is that only North America can make use of APN connection, anywhere else in the w...

Twisted ignoring data sent from MUD Clients?

I have the following code (almost an exact copy of the Chat server example listed here: import twisted.scripts.twistd from twisted.protocols import basic from twisted.internet import protocol, reactor from twisted.application import service, internet class MyChat(basic.LineReceiver): def connectionMade(self): print "Got new...

Why would a browser make two separate requests for the same file?

I'm debugging a program I wrote and noticed something strange. I set up an HTTP server on port 12345 that servers a simple OGG video file, and attempted to access it from Firefox. Upon sniffing the network requests, I found these two requests were made: GET /video.ogv HTTP/1.1 Host: 127.0.0.1:12345 User-Agent: Mozilla/5.0 (Macintosh; U...

strategy for hit detection over a net connection, like Quake or other FPS games.

I'm learning about the various networking technologies, specifically the protocols UDP and TCP. I've read numerous times that games like Quake use UDP because, "it doesn't matter if you miss a position update packet for a missile or the like, because the next packet will put the missile where it needs to be." This thought process is al...

BlackBerry - Access to web service from real device

hi i have developed a application, that works fine on the simulator, now i want to test the application on the actual device. my application tries to access web services over the internet. I mean to say, the application makes SOAP request to web services. Also i am accessing the web services using https So in this case, do i need to firs...

How to tunnel TCP over reliable UDP?

Assume I have a reliable UDP library, and want to tunnel arbitrary TCP connections over it. This is my current approach to doing so, but I feel that it may not be very efficient. Any suggestions are very welcome. Client establishes a reliable UDP connection to server. Client runs a local SOCKS5 proxy, which receives data from any app t...

How to build a server that accepts many thousands of persistent network connections?

I am about build a server on linux (I get to pick programming language) that accepts many TCP/IP socket persistent connections from a desktop software. How can this be done cheaply and efficiently? A machine cannot have more than 60000 ports, so if I have to support 600k connections then I will need 10 linux boxes? Since the computatio...

Windows: add security restrictions to current process?

I'm writing a web service (mostly in .NET, but there's some unmanaged code, too). I'm trying to avoid adding any vulnerabilities (obviously...), but it's alwyas possible (esp. since there's some unmanaged code, both by own & libraries, to which data from files/network is passed). UAC + DEP helps, but you never know. So I was wondering if...