Questions tagged [udpclient]

UdpClient (System.Net.Sockets.UdpClient) is a .NET-Class allowing to send and receive UDP-Traffic.

575 questions
1
vote
0 answers

How to broadcast Video using UDPCLient Class in C# over internet?

I am trying to develop a Video Client/functionality that captures video using webcam and transfers to other servent (server-client) somewhere on the internet. I am using UDPCLient Class to do that. I want my application to be able to listen and…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
1
vote
0 answers

C# UDP going slower then TCP

I'm trying to stream a video feed form the Xbox Kinect from a client to a server. I got it working with TCP but I could only get about 5 fps so now I'm trying it with UDP. UDP should be faster because of how the protocol works but it seems to be…
Rickyman35
  • 165
  • 3
  • 11
1
vote
1 answer

UdpClient receive buffer. When does it drop packets?

I have a UdpClient sat on a port. I use it to send data. 99% of the time I don't care about any incoming packets. However, on rare occasions I need to listen for a response from one of my sent packets. My first thought is to simple call…
GazTheDestroyer
  • 20,722
  • 9
  • 70
  • 103
1
vote
4 answers

Is sending the same mesage twice a good policy against UDPs disadvantages?

I have c# executables called server, client and client2 messaging each other on the same addr. I am differentiating the msgs by port number at which they are coming. regular run-1 Server starts client joins, leaves run-2 server starts client 2…
user494461
1
vote
1 answer

UDP Multicast data not being received by clients

Here's my code... I've tried many things, but none of them work. I'm sure there's something I'm missing. The intent is that a client listens to the given _remoteEndpoint address. Instead, nothing is found at all, despite showing the broadcast in…
Mike
  • 21
  • 1
1
vote
3 answers

How to change UdpClient IP address?

Is there a way to change the UdpClient IP address on the fly? StartUpd() throws a System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted even after doing a…
jacknad
  • 13,483
  • 40
  • 124
  • 194
1
vote
0 answers

why C# UDPClient.client.Available alway equals 0?

Why UDPClient.client.Availabe == 0 while the Wireshark can catch the UDP package ? I used the UDPClient to receive UDP package from other endpoint like below: socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram,…
chaingun
  • 21
  • 2
1
vote
0 answers

The problem with QNetwork: receiving UDP broadcast on android device

Actually I’d like to receive UDP broadcast on android device from other simple device (sender UDP broadcast). Both devices is in the same local network. The UDP datagrams has receiving from the Sender, but there is a problem with time of receiving……
ovzap
  • 11
  • 2
1
vote
0 answers

How to send large file using UDPClient? C#

I am trying to send images from one pc to another and I need it to be fast (streaming), that is why I cannot use TCP, TCP is too slow, how can I send large files without using TCP? this is what I've tried with TCP: ServerClass //This is running by…
1
vote
0 answers

Is my C# UDP client thread-safe in this way?

Sorry for my poor English. But I have some questions when I use the UdpClient in C#: In the Task function ReceiveMessage(), could I lock the udpClient for the thread safe? As the udpClient being locked, could SendMessage() run correctly in main…
子昂张
  • 11
  • 1
1
vote
1 answer

Gstreamer, how to play udp stream using C on android?

I'm trying to play udp stream using Gstreamer on android. (I've used this tutorial from the official Gstreamer website). I can play rtsp and https streams, but when I pass udp uri (like this: udp://@238.0.0.1:1234) nothing happens (there is a black…
Jan Rozenbajgier
  • 534
  • 4
  • 13
1
vote
0 answers

How redirect packets UDP ASSOCIATE via socks5

TCP can redirect but UDP not working, Please help. TCP get from ip:port destination UDP get from ip:port endpoit
Jinnie
  • 19
  • 3
1
vote
1 answer

UdpFramed with Actix Rust. Can't send messages using SinkWrite

I'm trying to write a Udp Client Actor using Actix. I've followed this example, UDP-Echo, but I can't seem to send a message to the server using the UdpFramed tokio struct. Here's what I have so far, this is the Udp Client Actor implementation use…
Fabrex
  • 162
  • 9
1
vote
0 answers

C# Socket binding to wrong interface

The problem I am encountering is that my sockets are not binding to the correct interface. I tried this with an UDPClient and an Socket directly. I have 2 available interfaces with the adresses 192.168.1.38 and 10.5.0.2, where the second one is my…
Sam
  • 111
  • 3
1
vote
1 answer

C# UdpClient - Listener not receiving all packets sent

I want to create a simple UdpClient listener process and a UdpClient publisher process as a proof of concept for a larger scale project. I created a simple UdpClient listener that listens for messages that are sent on a local port. The code for this…
Ean Price
  • 13
  • 3