networking

UDP sockets in ad hoc network (Ubuntu 9.10)

Hi! I am using BSD sockets in Ubuntu 9.10 to send UDP packets in broadcast with the following code: sock_fd = socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP); //sock_fd=socket(AF_INET,SOCK_DGRAM,0); receiver_addr.sin_family = PF_INET; //does not send with broadcast in ad hoc receiver_addr.sin_addr.s_addr ...

How to sniff local outgoing network traffic in .NET without using PCap?

Hi there, I'd like to somehow hook into the local system's network stack to capture outgoing network packets without using Winpcap. Unfortunately it tends to crash my system every now and then. Is there a way to "sniff" outgoing traffic of the local system from a user space process written in a .NET language? Thanks a lot! Hendrik ...

Good book for learning networking basics as it applies to programming?

Hi, What is a good book to learn about networking 'theory' (i.e. different layers: physical, tcp/ip, etc.). I don't want anything too technical -- just something so I can apply it to network programming. Thanks. ...

What cluster node should be active?

There is some cluster and there is some unix network daemon. This daemon is started on each cluster node, but only one can be active. When active daemon breaks (whether program breaks of node breaks), other node should become active. I could think of few possible algorithms, but I think there is some already done research on this and s...

What is the connect timeout for a socket on linux

Hi, I have a programming running on linux ubuntu which tries to connect to a server port using TCP. Can you please tell me how can I find out that is timeout value for a client socket connecting to a server socket for ubuntu? Thank you. ...

Wireshark Dissector: How to Identify Missing UDP Frames?

How do you identify missing UDP frames in a custom Wireshark dissector? I have written a custom dissector for the CQS feed (reference page). One of our servers gaps when receiving this feed. According to Wireshark, some UDP frames are never received. I know that the frames were sent because all of our other servers are gap-free. A C...

UDP traffic effect on network performance

well, i have network that each proxy (lets assume we have 200 proxies), send UDP packages every constant amount of time. (let assume 10 seconds) to constant amount of hosts (lets assume 10) my question is how will 6 * 10 seconds * 200 proxies * 10 target hosts = 120,000 UDP roundtrip communication per minute will affect my network, in te...

Communicating with all network computers regardless of IP address

I'm interested in finding a way to enumerate all accessible devices on the local network, regardless of their IP address. For example, in a 192.168.1.X network, if there is a computer with a 10.0.0.X IP address plugged into the network, I want to be able to detect that rogue computer and preferrably communicate with it as well. Both co...

Network time out when trying to connect ipod touch to my server

Hi, I have an ipod touch program that should receive messages from a server program on my mac. To make sure that the touch can receive messages from a computer other than a mac, I programmed the server in C++. If I run both the server and the ipod app on the same computer (the app running on the simulator), the connection is fine and eve...

Alternative to scp, transferring files between linux machines by opening parallel connections

Hi, Is there an alternative to scp, to transfer a large file from one machine to another machine by opening parallel connections and also able to pause and resume the download. Please don't transfer this to severfault.com. I am not a system administrator. I am a developer trying to transfer past database dumps between backup hosts and ...

TCP and UDP implementation of virtual terminal access

Im trying to understand the virtual terminal access. I was wondering if anyone know any sources for the Virtual Terminal Access protocol. And other sources like ftp, http, and remote procedure calls. ...

List of companies working in core networking domain?

Hello Everyone, I would like to know the name of companies working in core networking and embedded domain. Thanks a lot in advance. Rupesh ...

How can i simulate a slow network connection

Hi, I have a Bet Server which sends bet data to a game terminal I would like to simulate a slow network connection. i want the network to be really busy, heavily loaded so i can see how the bet server performs and if it times out when there is a heavy load on the network. Are there any tools i can use to do this? Thanks for any help....

Async networking + threading problem

I kick off a network request, assuming no login credentials are required to talk to the destination server. If they are required, then I get an authentication challenge, at which point I display a view requesting said credentials from the user. When they are supplied, I restart the network request, using those credentials. That's all ...

select() hanging indefinitely

I have an application that runs on embedded linux (older kernel, 2.6.18). I'm using Live555. Occasionally when the camera is heavily loaded, my RTSP server (built using Live555) will hang indefinitely--no amount of connecting or cajoling seems to get it to snap out of it, short of resetting the application. I narrowed the hang down to...

Simple performance testing tool in C#?

Hi, At first -I need to do it as my university project so I am not interested in using existing tools. I would like to know whether it is even possible to write a very simple tool that I could use for performance testing of web applications. It would only record actions (I do not know, maybe just packet sniffering?) and then replay. Howe...

UDP Broadcast stress

I am writing an application that relies on UDP Broadcasting. Does anyone know what kind of stress this puts on your network? I would like to have multiple clients on the same network broadcasting frequently. Any information on this would be helpful Thanks ...

Using Boost.Asio to get "the whole packet"

I have a TCP client connecting to my server which is sending raw data packets. How, using Boost.Asio, can I get the "whole" packet every time (asynchronously, of course)? Assume these packets can be any size up to the full size of my memory. Basically, I want to avoid creating a statically sized buffer. ...

Sending a HTTPS request and viewing the response

I am trying to debug the server component of a mobile application. Are there any tools that will allow me to send a HTTPS request and view the response? At the moment I have a Windows computer next to a Mac. ...

Need some help converting a MAC address to binary data for use in an ethernet frame

I've been looking over various internet postings and a lot of the code I've seen looks similar to this: def mactobinar(mac): addr = '' temp = mac.replace(':', '') for i in range(0, len(temp), 2): addr = ''.join([addr, struct.pack('B', int(temp[i: i + 2], 16)))]) return addr Can someone explain how this code w...