networking

Egress filtering against IP spoofing

How widely applied is anti-IP-spoofing egress filtering? ...

recvfrom stuck on one interface

hi, I'm using recvfrom to receive muticast messages from the network. There are two network interfaces on the system and recvfrom only receives from the first interface. When the 2nd interface is functional, recvfrom is blocked indefinitely and only receives a packet after switching to the 1st interface. SO_REUSEADDR is used in set optio...

Discriminators for using in flow-based classification

I need to classify TCP traffic base on video and non-video. So i need to find characteristics of each flow. My classification is Flow-based and one of my variables is incoming packet length. but it is not accurate as P(video|1200Bytes)= 0.04 P(non-Video|1200Bytes) = 0.22 I need some help to find some variables, at least two more to d...

Acceptance testing for a chat client

Hello there. I'm writing a chat client (msn messenger style) and I've got some problems in writing the acceptance tests for the send/receive feature. Think for instance to the user story "A user can send a message to another user". 1- Should I test if the client sw correctly interacts with the server? In this case how should I represe...

One iPhone client, many IP addresses?

My iPhone app accesses a server through a REST-ish API. I use sessions that are linked to the client's IP address in order to help prevent session hijacking. But I've noticed some strange sequences of requests in my server logs from certain client devices. What happens is different URLs on my server are being requested by the same cli...

Socket Programming in C++

Hi, Can anybody provide me some sample example on Client and server connection using sockets in C++. I have gone through some tutorials now i want to implement it. How to start ? ...

Relevance of link local addresses?

I'm writing a log on a server and want to include the ip address(es) of the machine. On windows 7 I get IPv6 addresses along with IPv4 ones but the v6 addresses have that % sign. From what I've pieced together about these addresses I'm still not sure if they are relevant for my log. As I understand it they are self assigned and only use...

fsc.exe is very slow because it tries to access crl.microsoft.com

When I run F# compiler - fsc.exe - on our build server it takes ages (~20sec) to run even when there are no input files. After some investigation I found out that it's because the application tries to access crl.microsoft.com (probably to check if some certificates aren't revoked). However, the account under which it runs doesn't have an...

how to extract data from Java web application?

Hello, I need to extract data from a Java web application. To be specific I am looking to extract real time stock data from yahoo market tracker. can anyone please suggest any method? ...

Cocoa Touch: How to detect a missing file on the download server

My iOS app downloads document files from a server using the NSURLConnection class. I use it asynchronously. It can happen that a document is missing from the server (configuration error). I expected NSURLConnection to call my delegate error method: - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error But...

Valid characters of a hostname?

What are the valid characters of a hostname? This would be something like a networked computer or a web domain. To put it in context, I am writing a PC game which connects to a remote server; so I have a field for hostname and a field for port. Obviously the port is a number in the Short range, but I need to know what all the possible h...

Why does the performance drops that much when my Erlang TCP proxy gets many concurrent requests?

For learning purposes I've written a simple TCP proxy in Erlang. It works but I experience an odd performance fall-off when I use ab (Apache Bench) to make many concurrent requests. It's not the performance fall-off per se that makes me wonder but the scale of the fall-off. The backend is nginx as a web server. My proxy sits inbetween ab...

RMi application does not work on WAN

I have designed a chat application working on the lan succesfully. but when i try to run this on wan i got a exception java.rmi.connectioException : connection refused to host:122.168.243.31 can any one help me . thanks in advance ...

Example socket programming in iphone

I am learning objective C.I like to know about client/server(socket) programming for iphone. I went through many answers,but still having many confusion with that flow and working.Can anyone help me out with code. Thank U!! ...

How to setup a Xen domU with multiple subnets on one interface?

I have a host (host1.example.com) with the following IPs: IP: 10.0.0.6 Subnet: 255.255.255.192 Gateway: 10.0.0.1 Broadcast: 10.0.0.63 IP: 10.0.1.9 Subnet: 255.255.255.248 Broadcast: 10.0.1.15 How to setup host1.example.com to host dom0 on both subnets? ...

Very compact object serialization method

I'm building a realtime action multiplayer game in Flash which is using too much bandwidth because it sends message objects as XML (as required by the Smartfox server). I'm now trying to cut down on that by serializing my objects to strings before feeding them to Smartfox. I've tried JSON but it doesn't help much. Is there another seria...

Matrix compression methods

Hello, In an application I've been working on, I have to send a 256 x 256 matrix over a socket. I'm developing a visualization client for a offshore system simulator that runs on a cluster, and this matrix is a heightmap representing the current state of the oceanic surface. This is an realtime application, so speed is a must. And, usi...

Asynchronous network stream problem with cutting off messages c#

I've this nice ASYNC tcp stream class that I'm using to connect to perl tcp server which then every some time sends msg to it. It usually isn't very long from 30 chars to 200-500 maybe. 95% it works fine but i've got a problem with it that it often sends the message cut off (by some chars) and then sends the rest of it in another message...

Replaying captured traffic through a bridge

I want to test network device code by replaying captured traffic. The middle-box(bridge) has two interfaces, connected to hosts machine-A and machine-B. The captured traffic in the pcap file contains traffic between three different IP addresses. I want to replay traffic originating from 2 of these IP addresses from machine-A(as clients) ...

Which one is better for making a social networking website, Drupal or Codeigniter?

Hello i am going to develop a social networking(like facebook) website for a company for internal use only but i am confused between Drupal and codeigniter that which one i should use. so please suggest me that which one is better to make a robust and high quality social networking website in short time period. My website included...