udp

Need help with multicast udp server discovery in c#

As kind of a followup to this question I've gotten a solution working on my local machine, but not on a machine on the network. I don't know too much about sockets other than that basics, so bear with me. The goal is for a client to look for a server on a local network, and this is the result of some cut/paste/edit code. This is the...

C# little endian or big endian?

In the documentation of hardware that allows us to control it via UDP/IP, I found the following fragment: In this communication protocol, DWORD is a 4 bytes data, WORD is a 2 bytes data, BYTE is a single byte data. The storage format is little endian, namely 4 bytes (32bits) data is stored as: d7-d0, d15-d8, d23-d16, d31-d24; doubl...

How do I choose a multicast address for my application's use?

Hi, How should I choose an IPv4 multicast address for my application's use? I may need more than one (a whole range perhaps ultimately) but just want to avoid conflicts with other applications. Packets will be entirely contained within an administrative domain, probably a LAN If several independent instances of my application are in ...

Java: Determine receiving address when receiving with MulticastSocket

Hi, I am using MulticastSocket to receive UDP Multicast packets. How can I determine to which address such a packet was sent? With the methods provided, I am only able to determine the sender address. Of course, I am the one who sets the To-Address when creating the listening socket, but can I really be sure about this? What about broa...

What is the optimal size of a UDP packet for maximum throughput?

I need to send packets from one host to another over a potentially lossy network. In order to minimize packet latency, I'm not considering TCP/IP. But, I wish to maximize the throughput uisng UDP. What should be the optimal size of UDP packet to use? Here are some of my considerations: The MTU size of the switches in the network is 15...

How to find a locally available UDP port with unix Sockets API

I have an application where I have potentially many processes must send a message to one process. I figured the most expedient way to do this would be to just send a UDP datagram. When opening a socket, I need to specify which port to listen to. As I just want to fire and forget the UDP datagram, I'd like to just have the OS pick an a...

Why does UDP have a length field in the header and TCP does not?

Why does UDP have a length field in the header and TCP does not? I am guessing that the length of the segment in TCP is inferred from the IP header but one should be able to do the same for a UDP datagram ...

Does HTTP use UDP

this might be a silly question: Does http use the user datagram protocol ever? for example if one is streaming a mp3 or a video over the web using http does it internally use UDP for the transportation? ...

UDP Response

Hi UDP doesnot sends any ack back, but will it send any response? I have set up client server UDP program. If I give client to send data to non existent server then will client receive any response? My assumption is as; Client -->Broadcast server address (ARP) Server --> Reply to client with its mac address(ARP) Client sends data to ...

Client Server Program behind router

Hi all I am trying to run client server UDP program . My both machines are in different networks. I have set up port forwarding in my router. My server has two IP Address : 1) External 200.?.?.? 2) Internal 192.168.0.100 While creating UDP server I need to create a socket which is binded to addresss. What address should I bind socket...

How to UDP Broadcast with C in Linux?

How to UDP Broadcast with C in Linux? ...

What is the Significance of Pseudo Header used in UDP/TCP

I just wanted to know why Pseudo header is preceded to UDP. Why Pseudo header is used. whats the logic behind it. ...

Is there a Windows tool for capture and playback of modified UDP packets?

I'm looking for a tool (or a set of tools) for Windows that will perform the following: Capture UDP packets from a specific network interface to a file. Play a stream of packets from a file through a network interface. In addition to 2: replay the original packets to a different host than the original one. I've already got 1 and 2, b...

How to set up a socket for UDP multicast with 2 network cards present?

I'm trying to get udp multicast data using sockets and c++ (c). I have a server with 2 network cards so I need to bind socket to specific interface. Currently I'm testing on another server that has only one network card. When I use INADDR_ANY I can see the udp data, when I bind to specific interface I don't see any data. Function inet_a...

Why Does RTP use UDP instead of TCP?

I wanted to know why UDP is used in RTP rather than TCP ?. Major VoIP Tools used only UDP as i hacked some of the VoIP OSS. ...

Whats the best way to send an event to all workstations

Hi, I hope someone can guide me as I'm stuck... I need to write an emergency broadcast system that notifies workstations of an emergency and pops up a little message at the bottom of the user's screen. This seems simple enough but there are about 4000 workstations over multiple subnets. The system needs to be almost realtime, lightweigh...

UDP broadcast packets across subnets

Is it possible to send a UDP broadcast packet to a different subnet through a router? I'm writing an app to discover certain devices on the network, and the PC might be on a different subnet than the devices it's looking for. ...

Developing Serverless Lan Chat Program Help!

I want to develop simple Serverless LAN Chat program just for fun. How can I do this ? What type Architecture should I use? Last year I have worked on TCP,UDP Client/ Server application Project.It was simple (Server listens to certain port/socket and Client connect to server's port etc..) But I have no idea about how to develop "Server...

Send UDP broadcast message with wxWidgets

Using wxWidgets 2.8.9 on Mac/Win/Linux, how do I send a UDP broadcast message? Receiving is working using wxDatagramSocket, but it's not obvious to me how I would go about SENDING a UDP broadcast message. ...

How can I programmatically read server logs from HLDS?

How does one go about reading and parsing server logs sent remotely from HLDS (Half-Life Dedicated Server)? My understanding is that you can specify where the server delivers logs using the command log_address. After this, the server is supposed to deliver the logs via UDP. How can I go about listening for these logs with either PHP o...