udp

SSDP Get Shared folder list using M-SEARCH?

hi , I am using SSDP to send discover request using M-SEARCH to get list of services present. My requirement is like i want to get list of share folders also which are present in that server. Currently , i am sending this request in this format : "M-SEARCH * HTTP/1.1\r\n" "Host: 239.255.255.250:1900\r\n" "Man: \"ssdp:discover...

Reopen connected datagram socket

I have a connection protocol that has been defined by our customer. Data are sent between two linux computers using UDP and TCP protocols. The IP addresses and ports are fixed on startup. We are sending messages at 200 Hz and I have been using connect to save some time on the transmissions. My problem is that if there is a communicatio...

Udp socket communication on same port on a computer

Hi,I have 2 programs on the same computer, communicating using udp socket. While program A running, I want to extract some information to program B. Using the SO_REUSEADDR socket option, I am able to bind 2 programs to the same port. However, when program A sent a message, program A itself, instead of B, received the message and display ...

Is UDP under windows slow or is it virtual box

I'm developing a UDP client/server app. I've discovered with iperf that the UDP limit to my virtual machine is maxing out at around 100Mbit/s. I have a quad core CPU so I've given windows 2 cores. I'm not sure where to point the finger because TCP maxes out around 450Mbit/s which is better, but also a bit slow. Is this a limitation o...

Sample Code for Remote Process/Application Monitoring

All I am looking for a bit of inspiration here, a client has requested me to build a simple remote process monitoring application with capability for smtp notification, when monitored processes go down or come back on-line. Can anyone point me in the direction of some sample code to get me started. I have briefly looked at .net remot...

Determining the size of the next UDP datagram in system's queue

I want to know the size of the next UDP datagram in the system's queue. I found this question with a similar doubt, but using boost. The last answer (as of 2010/09/23) say something about using getsockopt with the SO_NREAD option in OS X, but I can't find anything about this with Windows (using Winsock). Here I found that I can use ioc...

Stream audio in wifi network over UDP

Hi all, I have to implement a little software that sends an audio stream between two pc in the same WiFi network.. In little words, I get audio from device like a mic and then I have to transmit this audio in real time.. maybe I'll use Java.. To transmit data trough UDP something like this: //create UDP socket DatagramSocket socket = ...

Why is Socket.BeginReceive losing packets from UDP?

The following code waits for data over UDP. I have a test function that sends 1000 packets (datagrams?) of 500 bytes each. Each time I run the test function, the receiver gets only the first few dozen packets but drops the rest. I looked at the incoming network data using Wireshark and I see all 1000 packets are actually received, but ju...

UDP broadcast of WCF Service address

Im have a lab-environment in VMware with a WS2008R2-server and a W7-client. Im trying to broadcast a WCF-service-address from the server and receive this in the client. Im using System.Net.Sockets in C# .NET and I can successfuly send data from the server. I looks okay with WinDump at least. But when I try to receive this on the client i...

How to avoid UDP socket transfers limits?

Hi all, I write a little program that sends file from client to server trough udp socket connection.. the program works correctly but if the file I transfer is larger than 8192 kb the stream stops and the file I receive is corrupt.. How can I avoid this limitation? server.py host = ... port = ... filename = ... buf = 2048 addr = (host...

c# udpclient receieve full response

When I use the following code to send a query and recieve a response from a game server only some of the response gets loaded into my byte array. Im new to using udp and networking things like tcpip, can someone point me in the right direction so that I can get the full response (when i send the query using netcat i get the full response...

Streamming a h.264 coded video over UDP

Hi there, I don't know too much about h.264, but the thing is that I've got this video in h.264 in a mp4 container which I would like to stream over UDP. My question is simple, is there any tweaks I can maybe do while coding the video so that it comes out fairly tolerant to some "light" packet loss? I know that compressed video usually...

UDP response not reaching back client

I am working on a application which sends UDP packet to initiate a Processing and needs to send back response on same socket after 3-5 minutes, but issue is that when response is sent back, it never reaches client. I am using java. Any suggestions, how we can keep the socket alive over longer period of time? -- ...

mp3 streaming playback over RTP using gtreamer

Hello All, I am working with gstreamer, mainly playing around with music playback features. I am currently trying to use RTP to send mp3 streams over our LAN, but unsuccessfully until now. On sender side I use the following pipeline: gst-launch -v filesrc location=./my_music_file.mp3 ! ffdemux_mp3 ! rtpmpapay ! udpsink port=6969 host...

Is TCP suitable for network game programming consisting of regular positional updates?

Hey guys, Suppose you were forced to use TCP sockets over UDP sockets (ie: something that Silverlight insists on). Would it be possible to create a multiplayer game that involves sending real time positional updates to up to say eight players so that each player could accurately see every other player in real time, even though UDP would...

Starting a Process When a Port is Connected To

I want to create a single client that issues unicast requests for data from any of many workstations on the same LAN. The client will likely run Linux, but the workstations may run any OS. Is it possible to avoid running a daemon on each of the workstations and yet have them reply to requests within a few seconds? I want to avoid creatin...

udp winsock programming

Hi, I'm the beginner in socket programming. I want to receive udp packets continuously from the port. For that I created socket and using bind and recv calls I have done with my program. In a buffer I'm storing the udp packets. How to receive packet by packet. How to put condition for particular time interval? Thanks in advance. stati...

What cipher for encrypting UDP packets?

I have an application that does time-sensitive communications over UDP (like video streaming or a game). Packets may be lost, and do not need to be re-transmitted. What cipher should I use to encrypt the datagrams? I'm leaning towards blowfish in ECB mode. I know ECB mode has problems, but I need to support missing packets, so the enc...

C++ UDP Socket port multiplexing

How can I create a client UDP socket in C++ so that it can listen on a port which is being listened to by another application? In other words, how can I apply port multiplexing in C++? ...

Is my design for UDP socket server correct?

I am designing a server which is used in UDP communication using MFC. I have the following classes CMyDlialog - Take care of User interface CController - Act as an Mediator between all the classes CProtocolManager - Take care of Encoding/Decoding msgs (This is a static class) CConnectionManager - Take care of UDP connection, Sending, R...