network

Retrieving netmask for interfaces with multiple IP addresses using Python?

I need to list the available network interfaces and their IP addresses and corresponding netmasks using Python in a Linux environment. I can get the interfaces and the IP addresses of each interface using ioctl and SIOCGIFCONF as outlined here, but I'm at loss when it comes to determining the netmask when there are multiple IP address o...

Is Haskell's Network.Browser module like Perl's LWP or Python's mechanize?

The Network.Browser documentation says that the module supports the following: HTTP Authentication handling Transparent handling of redirects Cookie stores + transmission. Transaction logging Proxy-mediated connections. To me, it sounds like the beginnings of a browser that lets me crawl web pages, handling authenciation into web sit...

Mocking a TCP/IP connection with C#

Hi, I'm a bit of a network n00b, so please be gentle and explain things in a really, REALLY dummy way (it seems to me that every time it comes to network related stuff, people start talking a totally different language). I'm a fairly experienced C# programmer, but lacks some skill when it comes to communication between machines. The sc...

capturing input from multiple computers

i would like a program on computer A to be able to track the keyboard input on computer B and computer C through a trace() or print() method. Not specific on which language, although i am most familiar with flash/processing or php, something like that. this is for an installation i am doing at work; note that this is similar to a keyl...

A network flow problem

I am recently preparing for the acm-icpc contest. Here I want to know how to find the minimum flow with the least cost given the condition that each edge in the graph has a capacity C, a cost V, and a lowerbound flow L (L ≤ C). ...

I need a script/application to persist TCP connections for a PHP frontend.

Hello, I am making a PHP frontend for a backend server using a custom protocol over TCP. Due to a fairly complex handshake when establishing connections to the backend server, I would like to persist the TCP connections to the backend server. Naturally, given the inherently stateless nature of HTTP (and especially so when using mod_php u...

Redirect one ip to another within windows?

Hi, is it possible to somehow tell windows that when I try to access ip a.b.c.d it should access w.x.y.z ? Thanks ...

Send from Twisted client to Twisted server, only this one way

I want to use Twisted to rebuild the communication part of an existing application. This application does send data from the client to the server, only this way round, the server does not send anything. How do I accomplish this with the event-driven concept of Twisted? I currently use the connectionMade method of Protocol, but I don't t...

TCP server: how to avoid message overlapping

I am going to write a TCP server, the client sends me XML message, I am wondering if below condition will happen and how to avoid that: 1) client sends <cmd ...></cmd> 2) sever is busy doing something 3) clients sends <cmd ...></cmd> 4) server does a recv() and put the string to buffer Will the buffer be filled with <cmd ...></cmd><cmd...

common code integration in mac network

Hi to all, I am new to mac network environment. I working in a team, each time the code has to be get and integrated in single place. Is there any possibility to have common code integration software in the mac server for auto integration Regards, sathish ...

Crawling a social network in python

I would like to write a python script to crawl a social network website. The aim of the script should be to retrieve a piece of the social graph (friendships relationship). The website does not provide any API. The problem is: how can i crawl a website in python which pretends a login session to access the contact pages (for example, ...

network security

what are the various implementation challenges in network security? ...

Registering Callback / calling a function when network interface comes up

I want to meassure the time it takes for an interface on a linux system to a) become up and b) become IP capable. This would invoke as a first step to get the linux kernel to tell in some way to call a python function when an 'interface up request' has been sent. Some application (e.g. d-bus) requests: 'iface up' => timer_1.start() ...

How to get information about network adapters in c++?

How to get information about all network adapters in system? Name, Manufacturer, Location(PCI, slot2), Driver Version. Actually i retrieved Name and Manufacturer with WMI but i can't find Location and Driver version. I need only c++ solutions not MFC/clr. winapi function? wmi (missing something)? Also i need to retrieve .NET version on ...

Configuring Eclipse .classpath for two different paths for the same entry

Hi everyone, I'm wondering if there is a way (in Windows 7) to make some sort of mapping of drives so that sometimes you find the files in a network drive and sometimes you find them in a local map? -And to be able to easily switch between those two. The reason I want to do this is that I want to be able to work (as a developer, using ...

Trying to use my subnet address in python code

Hello, I'm trying to get my ip subnet address (192.168.1.xxx) into my python code. I'm running linux/osx. How do I do this/ What is the best way to do this? Thanks in advanced for your help. ...

How does a social network aggregator like Aol Lifestream Work?

Hey All, I've been messing around trying to create a social network aggregater for a while and I recently came across http://lifestream.aol.com/ and realized I'm going about it all wrong. For facebook, for example, I was using fql queries and the like to literally pull on a bunch of content and save it into my own databases etc; but th...

Windows Security Template to Allow CAN Controller Access

I'd like to see advice on how the security template should be configured to permit CAN controller access from an application. Thank you. ...

Lower Network Latency

Hello! I am sure this is a very common question and may have been answered but I am unable to find proper solution. I have a server that needs to be highly available and should carry a very minimal network latency. I did some benchmarking on the server alone and noticed that it responds pretty fast at an avg of 300 ms. But the network l...

pythonic implementation of Bayesian networks for a specific application

This is why I'm asking this question: Last year I made some C++ code to compute posterior probabilities for a particular type of model (described by a Bayesian network). The model worked pretty well and some other people started to use my software. Now I want to improve my model. Since I'm already coding slightly different inference algo...