packets

Is Socket ReceiveFromAsync implicltly multi threaded?

I'm currently working on a high performance Raw socket application. I'm using ReceiveFromAsync to receive packets. This may sound like a silly question, but is this implicitly threaded? I'm not sure if i need to take the received packet and thread off the handling to ensure I'm not blocking any additional packets while i handle the curr...

xml data over network tcp . please help

I have devices. Each one sends data to (server IP-address) over a particular port in a random time. Because it's an alarm device and it’s possible that more than one device fired in the same time. The data is in XML Format. Now I already got a small windows application which listen for the data But I got a few problems problem is that...

C code to generate and send a packet

Hi all, I would like to know about the inbuilt library functions in C to build a complete packet(along with frame) and to send it over a network... Can any one upload the C code which does the above stuff... :) ...

Winsock alternative (no, not WinPCAP)

Are there any viable alternatives to Winsock for C++? The reason I need of is because Winsock's raw sockets are not behaving properly (no, this is not fixable, don't waste your time asking) and WinPCAP can only monitor network traffic, not actually receive packets. I need something that can receive complete packets including any IP, UDP,...

How to generate 8 byte hex value?

Hi I want to generate this sequential data in C data_packet[1] = 0706050403020100 (seed_value) next data_packet[2] = 0f0e0d0c0b0a0908 Next will be the next 8 hexadecimal characters and so on for say 100 bytes.How can i do it.Can we do it using character array ?? ...

Monitoring packets going in and out of an application

I'm building a VoIP application using the TeamSpeak 3 SDK. Is there any way to view the UDP packets going in and out of the server/client applications? ...

When do USB Hosts require a zero-length IN packet at the end of a Control Read Transfer?

I am writing code for a USB device. Suppose the USB host starts a control read transfer to read some data from the device, and the amount of data requested (wLength in the Setup Packet) is a multiple of the Endpoint 0 max packet size. Then after the host has received all the data (in the form of several IN transactions with maximum-siz...

TCP protocol : Host goes temporarily unavailable

Say our client is sending the packets at a constant rate. Now, if server goes down temporarily there can be two situations (We are using the TCP protocol) 1) The packet won't be delivered to the server. Consequently, the other packets in the line have to wait for the server to respond. And the communication can be carried out from ther...

Transmission of float values over TCP/IP and data corruption

Hello all. I have an extremely strange bug. I have two applications that communicate over TCP/IP. Application A is the server, and application B is the client. Application A sends a bunch of float values to application B every 100 milliseconds. The bug is the following: sometimes some of the float values received by application B a...

How to set the maximum TCP mss (Maximum Segment Size) on Linux?

A simple question: In Linux, how do you set the maximum segment size that is allowed on a TCP connection? I need to set this for an application I did not write (so I cannot use setsockopt to do it). I need to set this ABOVE the mtu in the network stack. Here's why: I have two streams sharing the same network connection. One sends s...

Split up python packets ?

Is there a way python can distinguish between packets being sent ? e.g. python receives data it process data clients sends first packet client sends second packet python receives data, can i receive the first packet rather then all info in the buffer I know i can set it up up so it sends data i confirm and the client wont send more...

IP packet / timeout / interval control

Without a novel, I'll try to explain and hope it makes sense. We have an app that handles sending data to a server via simple HTTPS, no problem all works fine. HOWEVER, if the packets are sent via a satellite phone, the latency of transmissions is a lot longer than the typical milliseconds handled on land-line high-speed network acce...