Menu
  • HOME
  • TAGS

Process UDP packet by two clients connected to IPAddress.Any and 127.0.0.1

.net,sockets,f#,udp,udpclient

No, in general once a packet is 'removed from the TCP/UDP stack' is considered processed. The first client removes it when it receives it and from the point of view of the OS and the framework, it's handled and won't be delivered to more listeners. You'll have to implement your...

C# Application not receiving packets on UDPClient.Receive

c#,winforms,udpclient

UDP is a connection-less protocol. Don't Connect. Instead, you're simply passing packets of data. Also, when you're using UdpClient, don't dig down to the underlying socket. There's no point. The simplest (and quite stupid) UDP listener would look something like this: var listener = new UdpClient(54323, AddressFamily.InterNetwork); var ep =...

UDP client asinc doesn't close sockets

c#,sockets,udpclient

SOLVED. After more research and rough work, here is the working result. I have used sincronous reading, using the timeout to discard the UDP ports that are not receiving data. private void BETAScanNetwork() { int contador = 0; for (int i = 1140; i <= 1160; i++) { UdpClient listener...

UDP client does not receive data without bind()

c,sockets,udp,winsock2,udpclient

Hi Finally I found the answer from EJP answer It is only necessary to bind() a server, because the clients need a fixed port number to send to. A client needn't bind() at all: an automatic bind() will take place on the first send()/sendto()/recv()/recvfrom() using a system-assigned local port number....

Should a UdpClient be disposed of?

c#,.net,resources,dispose,udpclient

No you shouldn't. you should call UdpClient.Close ... After looking at the source here: http://referencesource.microsoft.com/#System/net/System/Net/Sockets/UDPClient.cs#7682e0ea2c48b5cb It appears you can either call Close or ((IDisposable)updClient).Dispose but API-wise I think calling Close is the way UDP client is intended to be used... All this makes very little sense to me.... ...

Merging Deferred Observerables Udp

c#,system.reactive,udpclient

You are definitely thinking in a procedural manner, rather than functional. You need to try to keep your processing within the observable and avoid foreach and temporary lists of observables. You are also using a UdpClient to produce your values - this object is disposable so your observable should manage...

Strategy for 2 way communication with UDPClients

c#,multithreading,udpclient

UDP is a duplex protocol (like TCP). You can safely send and receive off the UDPClient object at the same time. You should not use two UDPClient objects. However, those operations do occur on separate threads (or pseudo-threads, if you use await/async), so you may run into synchronization issues in...

Why does my chat program only work when both clients are on the same machine?

java,sockets,udp,ip,udpclient

Whenever I do socket programming, my first step is to get the packet communication working. I use a basic client - server implementation and simply send "Hello World", back and forth to make sure that I can run everything separately (not localhost). You may want to take a step-back from...

UDP receiving - precise time when packages arrive in C#

c#,sockets,udp,timestamp,udpclient

DateTime.Now has 15ms precision on most machines. You can measure relative times (time spans) very precisely using Stopwatch. I doubt the NIC driver or anything else in the stack below you is recording precise timestamps for packets. So I think this is the best you can get (except for using...

need to choose between NamedPipe or UDP

c#,.net,udp,named-pipes,udpclient

Before Implementation , you can care below points : Named pipes: Named pipes provide interprocess communication between a pipe server and one or more pipe clients. They support message-based communication and allow multiple clients to connect simultaneously to the server process using the same pipe name. Named pipes also support...

Why can't I get UPnP unicast M-SEARCH to work instead of MultiCast M-SEARCH?

udp,multicast,upnp,udpclient

The fix for this was in the validation of the Unicast message. Here are two examples of messages. The first is a MultiCast, the second is a UniCast: M-SEARCH * HTTP/1.1 HOST: 239.255.255.250:1900 MAN: "ssdp:discover" MX: seconds to delay response ST: search target USER-AGENT: OS/version UPnP/1.1 product/version M-SEARCH * HTTP/1.1...

python graypy simply not sending

python,udp,udpclient,graylog2

Open your Graylog Webapp, click 'System'. You will see a list of links on the right. On of them is 'Input', click this one. Now you have an overview of all running inputs, listening on different ports. On top of the page you can create a new one. There should...