udp

UDP broadcasts are not being received by sender

Platform: Windows 2003 R2, C# I have an application that sends UDP messages to other instances of itself, running on the same computer and on other computers. This is working fine. But, on some computers, the listener cannot hear messages that other thread/process on the same computer has transmitted. The message is broadcast ok, and...

How to send/receive nmea string over tcpip/udp

Hi there! I have a gps receiver, which can send data (using gprs connection) to the server www.example.com. Now I need something to receive this data (gps nmea string) from www.example.com (probably, to listen to certain port..), parse this information and store it to my database. I have some knowledge of php and mysql. So, the questi...

c# UDP check if i got the whole packet?

Well this is my first udp test program and i think i now understand a bit of it :) any way here is my code so far: static void Main(string[] args) { Socket udpSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); udpSocket.Bind(new IPEndPoint(IPAddress.Any, 111)); ...

Best C++ RTP/RTSP library

Hello I'm looking for a RTP/RTSP library in C++. I found pjsip but it is more C-style. I'm looking for more OO library. Thanks ...

Send udp packet on LAN from web browser

I have built a simple TAPI app that will run on a machine on the LAN that connects to the office PBX, it allows me to receive dial, answer, hangup etc commands (which I was planning on receiving via a udp packet). I did this with the intention to integrate the office CRM system to the phone system. Having done this and testing using a s...

looking for a simple UDP packet generator

hi there, im looking for a simple (gui based) tool to send custom UDP packets. thanks! ...

C# UDP multicast sockets - how to handle link failures

Hi, I'm working on a UDP Multicast library and got a question on how to properly handle link failures, disconnected/reconnected NIC cables, etc. In my test I have the following setup: 2 servers sA and sB sA is sending UDP multicast data and sB is receiving multicast data servers are connected through a Layer 2 Cisco gigabit switch ...

UDP checksum calculation

Hi, The UDP header struct defined at /usr/include/netinet/udp.h is as follows struct udphdr { u_int16_t source; u_int16_t dest; u_int16_t len; u_int16_t check; }; What value is stored in the check field of the header? How to verify if the checksum is correct? I meant on what data is the checksum computed? (Is it just the udp ...

How to split data into equal size packets having variable header size.. .

I am building peer to peer application in python. Its going to work over UDP. I have function called getHeader(packetNo,totalPackets) which returns me the header for that packet.Depending on size of header I am chopping data, attaching data to header and getting same packet size. Header size is not fixed because length consumed by diffe...

Type of object from udp buffer in python using metaclasses/reflection

Is it possible to extract type of object or class name from message received on a udp socket in python using metaclasses/reflection ? The scenario is like this: Receive udp buffer on a socket. The UDP buffer is a serialized binary string(a message). But the type of message is not known at this time. So can't de-serialize into appropri...

How can I access UDP ports using a web application on the client PC?

One of the thing that current Windows application does is that it writes out information to a hardware device via a UDP message. We are considering porting the application to web-based. I checked Silverlight, and that doesn't allow UDP. We don't want to use ActiveX or Java Applets. What are the other options? Thanks. Update - does an...

Listening a socket on client machine using Javascript

Is that possible? I'm writing a web-admin interface for a network-system. I need to listen to a specific UDP port and show it in browser. Can I do that in javascript? Also; any other ideas are welcomed. early-edit: Here's another idea: I have php and perl support at server-side. JS can call a php script to start listening, which will a...

Why does mDNS (Bonjour, Avahi, etc) use UDP?

It seems to me that a lot of the problems with DNS, particularly security problems, have the root cause of DNS being implemented over UDP; for example the responder doesn't have to be who he says he is. I don't know the details of mDNS protocol (which I assume is much newer than DNS), maybe it takes care of these problems in its applica...

Winsock UDP packets being dropped?

We have a client/server communication system over UDP setup in windows. The problem we are facing is that when the throughput grows, packets are getting dropped. We suspect that this is due to the UDP receive buffer which is continuously being polled causing the buffer to be blocked and dropping any incoming packets. Is it possible th...

tool to create and send test udp datagrams

hi there, im looking for sth like: udpsend [udp-data] [target-ip] [target-port] eg. c:\>udpsend "Hello, World" 192.168.1.111 4711 this should be out there anywhere, but i cant find it. thanks :) ...

implementing ack over UDP?

We have a system (built in C) in place that performs communication over UDP. Recently we have found a necessity to guarantee delivery of packets. My question is: what would be the minimum additions to a UDP based system to ensure delivery using ack packets? Also, ideally without having to manipulate the packet headers. We have applic...

UDP socket port allocation failure

Hi I am creating a winsock UDP program. code i am using is shown below. I am always getting port assignment error. I am not able to understand why port always allocated is zero. If some can help me with this.... void UDPecho(const char *, const char *); void errexit(const char *, ...); #define LINELEN 128 #define WSVERS MAKEWORD(...

Can the data in a UDP packet be assumed to be correct at the application level?

I recall reading somewhere that if a udp actually gets to the application layer that the data can assume to be intact. Disregarding the possibility of someone in the middle sending fake packets will the data I receive in the application layer always be what was sent out? ...

Importance of ping - pong in udp p2p communication

I am quite new to socket programming. I was trying to make p2p communication using udp and did finally made it. While writing a program, the point I have observed is that communication between two peers does not take place if packets are not send from both sides. I read somewhere that in networking its called ping-pong. I want to know ...

C# UDP decoding datagrams fails randomly

Hi, I'm experiencing an issue in a multi threaded application and have been debugging it for the last 3 days but for the life of it can not figure it out. I'm writing this, hoping that I either have a DUH moment when typing this or somebody sees something obvious in the code snippets I provide. Here's what's going on: I've been working...