UDP more same sockets
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: UDP more same sockets
by lawrence WIZnet ·
Hello, harman
Do you want to use 8 sockets as UDP and connect to same UDP server?
Could you capture the packet you received from Server?
It is hard to see what your problem here…
Thank you
Lawrence
RE: UDP more same sockets
by Coccoliso ·
Hi,
the problem is in the protocol structure.
Your device is in the network with the same MAC address and IP address for all sockets that have opened.
UDP communication takes place without connection then opening more sockets in RX on the same port the sender continues the trasmission using a random socket and In this context it will be difficult to reconstruct the flow in the right way because the bytes may have a different order than transmitted because there is no flow control (bytes order) of the stream.
Then from what I understand you are using interrupts then the first occurrence causes reading the bytes arriving on one random socket.
I think the correct approach in the case of UDP streams would instead open a single socket and wait for reading to a minimum of received bytes before start an asynchronou read (like a FIFO for instance).
In this way you would have time to read the incoming bytes and go on to even larger flows of the maximum size of the receive buffer.