udpclient Questions
5
Solved
I'm using UDPClient like below
dim c = New UDPClient(port)
client.CLient.ReceiveTimeout = 1
await client.ReceiveAsync()
However the await does not terminate or throw even
though I have set a ti...
Instrument asked 28/9, 2012 at 10:19
2
Solved
I'm trying to create a UDP server which can send messages to all the clients that send messages to it. The real situation is a little more complex, but it's simplest to imagine it as a chat server:...
0
I have a program to discover clients on network, The class libraries which responsible for the discovery are .net standard 2. It works perfect on windows machines but now i need to run it on linux ...
Thornberry asked 23/7, 2020 at 6:22
3
Solved
I am receiving data from UdpClient via the usual async callback:
private void OnUdpData(IAsyncResult result)
{
byte[] data = _udpReceive.EndReceive(result, ref _receiveEndPoint);
//Snip doing s...
Diphthongize asked 16/2, 2012 at 11:23
3
Solved
I have a thread which sits around waiting for UDP messages from multiple interfaces using UdpClient::BeginReceive and a callback which calls UdpClient::EndReceive to pick up the data and pass it on...
Fireside asked 19/8, 2013 at 9:0
1
I am looking for a way to trigger the function named receiveUDP each time a UDP packet is received. How can can I do that on Kotlin? Here is the code I currently have working like a simple chat.
I...
1
I have a VPN client that works fine for sending unicast UDP packets over the VPN pipe but does not do that for multicast IP (UDP) packets (OpenVPN). So I thought I could write this little shim that...
Vidicon asked 11/6, 2018 at 15:27
6
The following code, despite apparently closing the UDP Socket, leaves it hanging and unable to reconnect to the same address / port.
These are the class variables I use:
Thread t_listener;
List...
Endplay asked 9/5, 2014 at 12:41
5
I want to do this
for (int i = 0; i < 100; i++ )
{
Byte[] receiveBytes = receivingUdpClient.Receive(ref RemoteIpEndPoint);
}
But instead of using UdpClient.Receive, I have to use UdpClient.B...
Turner asked 7/11, 2010 at 14:47
5
Solved
I am wondering whether I can set a timeout value for UdpClient receive method.
I want to use block mode, but because sometimes udp will lost packet, my program udpClient.receive will hang there fo...
4
Solved
I need to send a UDP message to specific IP and Port.
Since there are 3 network cards,
10.1.x.x
10.2.x.x
10.4.x.x
when i send a UDP message,i am receiving the message only in one network adapt...
Ophthalmoscopy asked 8/7, 2009 at 4:40
1
I've decided to take a look at network messaging etc and my first port of call was UDP.
The problem i have is when i attempt to send a message. I'm trying to hit an IP on a specifc port, but the a...
2
I am able to properly send my data through UDP socket , but when I receive data it keeps on waiting at receive command I don't know what is causing this.
Please have a look at my code below.
I am ...
5
Solved
I have the following code block, and it affects my program efficiency. The problem here is if the target host exists, everything is OK. But if it does exist, it takes too long to execute. Finally, ...
2
Solved
Good day. I work with UdpClient and have wrapper upon it.
For reading I have asynchronous method:
private async Task<byte[]> Receive(UdpClient client, CancellationToken breakToken)
{
// Вы...
Gingergingerbread asked 7/12, 2016 at 14:28
4
Solved
I have figured out the maximum data before fragmentation between 2 endpoints using udp is 1472(other endpoints may vary). This states that mtu is 1500bytes and header overhead per packet is 28bytes...
4
Solved
I tried the suggestion from this question with very little success.
Please... any help will be greatly appreciated!
Here is my code:
static void Main(string[] args)
{
IPEndPoint localpt = new ...
Potassium asked 2/2, 2012 at 21:11
4
Can any one tell me how to set the Source port address in the UDP socket ?. My client application needs to send the Packets from the 57002 port to the server port 58007 .
2
Solved
If I create a socket using
var socket = new UdpClient(0,AddressFamily.InterNetwork);
How do I then find the port of the socket?
I'm probably being daft, but I'm not having luck in MSDN/Google ...
1
Solved
2
Solved
I was looking for the best solution to receive and process messages via UdpClient class in C#. Does anyone have any solutions for this?
1
Let's assume I have an UDP socket that was open on a certain address / port and then hanged.
When I try to initialize a new UDP Socket (UDPClient) on that same address / port of course it raises a ...
Masakomasan asked 9/5, 2014 at 10:45
1
I am using recvfrom() to get the UDP datagram into my buffer and passing non-NULL from_addr structure & len argument expecting it to get the source IP. But for the first call, they are NULL.
Su...
1
I am trying to do a socket programming assignment from one of my textbooks.. UDP connection..
UDPServer.py
from socket import *
serverPort = 12000
serverSocket = socket(AF_INET, SOCK_DGRAM)
serve...
2
I know this question has been asked many times. I've read ALL the answers and tried EVRY piece of code I could find. After a few days I'm so desperate that I have to ask you for help.
I have a dev...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.