network

Packet mangling utilities besides iptables?

I'm looking for a linux utility that can alter the payloads of network packets based on a set of rules. Ideally, I'd use iptables and the netfilter kernel module, but they don't support generic payload mangling: iptables will alter various header fields (addresses, ports, TOS, etc), and it can match arbitrary bytes within a packet, but ...

Negotiating a common "network-channel" in a peer-to-peer system

Is there a common or established algorithm for peer-nodes in a network to decide on a unique "network-channel" (or any other form of semi-secret identifier)? The environment I'm working in is SecondLife. I am trying to figure out how to get many identical peer scripted objects to agree on a "channel" number which allows them to form a ...

C++ converting a mac id string into an array of uint8_t

I want to read a mac id from command line and convert it to an array of uint8_t values to use it in a struct. i can not get it to work. i have a vector of string for the mac id split about : and i want to use stringstream to convert them with no luck. can anyone point me what i am missing? int parseHex(const string &num){ stringstre...

What's the best design in .NET to use for sending data over an unreliable (3G) network connection?

I'm re-designing an app I inherited that sends digital photos from a laptop to a web server. The idea is to take photos "out on the field" and have them instantly published on a web page (with some more fancy features). Typical scenario 1. Photos are transferred from the camera to the laptop using standard USB. 2. The photos are process...

unable to post a https WebRequest in .net?

Hi i am encountering problems trying to post a WebRequest under Https. i received the following errors 1.-The underlying connection was closed: Unable to connect to the remote server. 2.-the operation TimeOut 3-The underlying connection was closed: Could not establish secure channel for SSL/TLS. i tried with about 3 or 4 different ...

Code in any language (.NET preffered) to edit and create settings for PPPoE connections in Windows XP

Pretty all in question... I'm looking for batch script, code or library which allows to edit and create settings for PPPoE connections in windows when hardware and infrastructure is already present. Also I'm looking for script/code to change active connection. .NET is preffered, but any other language will do as well. Thanks in advance...

Why do requests and responses get lost?

Even on big-time sites such as Google, I sometimes make a request and the browser just sits there. The hourglass will turn indefinitely until I click again, after which I get a response instantly. So, the response or request is simply getting lost on the internet. As a developer of ASP.NET web applications, is there any way for me t...

Using Java 6, on linux how can I make sure to use an ipv4 socket?

I'm trying to write a quick little java application to read the contents of a pcap file (from Wireshark) and play the data back on the network on a linux box. The file will only contain UDP broadcast packets, so my application only really needs the timestamp, port number, and data from the packet to do what I need. My problem is that t...

Generic Architecture for a Network Server/Client using a State Machine

HI, All, so, I inventedmade up a simple protocol that I want to use for a client to talk to a server. It's the typical (I think) three-phase layout: Connection Establishment (will eventually include capability negotiation) Actual Data Exchange - packets are happily travelling to and fro', get interpreted by the respective receiver wh...

What impact does "duplicate name exists on the network" error have for a virtual machine?

I have a project where multiple developers are using a copy of the same windows Virtual PC image (W2K3 SE SP2). Because our solution is tied to the machine-name (less than ideal, i know) all of the developers have the same machine name. We use a VPN to connect to a remote system, upon connection we get the "Windows Error: A duplicate n...

Changing the MAC Address in Vista - Broadcom adapter

Is there a way that we could override the default mac address / set a new mac address on a Vista machine for a Broadcom adapter ? ...

Why I cannot get equal upload and download speed on symmetrical channel?

Hello, I'm assigned to a project where my code is supposed to perform uploads and downloads of some files on the same FTP or HTTP server simultaneously. The speed is measured and some conclusions are being made out of this. Now, the problem is that on high-speed connections we're getting pretty much expected results in terms of through...

Java printing directly to a Postscript network printer

I've got Postscript code/data (?) in memory (in a Java Tomcat webapp) that I'd like to send directly to a networked PS printer. Is there an easy way (i.e. just popping open a port and sending the text) to print this, bypassing all of the O/S-specific drivers and stuff (and hopefully not even requiring extra jars)? A link to example cod...

Accessing network shares

Hi, I am currently trying to access a network share from my machine programaticaly using vc++ 6.0. I am using WNetAddConnection2 to connect to a share using my credentials. I am facing the following problem: Consider the case when there are 2 users trying to access the same remote share from same machine one after the other. Now once ...

What is the relative difference between in-proc, interprocess, and inter machine calls?

Ignoring payload size, what is relative difference in latency between an in-proc call (say in C++ or Java), a socket call to a process on the same machine, and a socket call to a process on another machine? This can be expressed as a minimum latency in ns/ms or in terms of relative orders of magnitude. I'm looking for something similar...

What is commonly used for Encryption over simple Socket Communications

I have X interfaces to Y computers that communicate over a public network (Think colleges and libraries). I am researching common industry standard techniques for encrypting the data that goes between us. I know there is SSL, but I'd rather find a simple technique that is a "purchase once, install infinite" (trying to keep my variable c...

Network Drive label

Hello, I'm trying to get the label of some network resources mapped as drives. When I use DriveInfo.GetDrives(), local volumes have the VolumeLabel filled parameter as expected, but in network drives it is an empty string. How can I get those labels? ...

Getting raw HTTP request from CFHTTPMessageRef

I am working with a wrapper class for CFHTTPMessage, which contains a CFHTTPMessageRef object to which is added the method (GET), the URL of the web application server, and a few custom headers containing the date and an authentication nonce. I'm having some problems getting the method and URL to return certain data. I think I've worked...

Proper way to stop TcpListener

I am currently using TcpListener to address incoming connections, each of which are given a thread for handling the communication and then shutdown that single connection. Code looks as follows: TcpListener listener = new TcpListener(IPAddress.Any, Port); System.Console.WriteLine("Server Initialized, listening for incoming connections")...

Network Security

I have been a .net developer for the past three yrs. Just curious to know about the network security field. What kind of work does the developers working in these area do? I really have not much idea about network security but what my understanding is these people are involved in securing network, preventing attacks on network as obviou...