I have several noob questions about UDP, please help answering them. While they look like easy, I can not find explicit answers to them.
- Can I use a socket for both receiving and sending, or only sending, and when send command completes, can initiate receive?
- when W5100 is going to receive packets - only after I issue RECV command? Can I send through same socket when in “receive” mode?
- if I do not issue RECV command, but remote server responds with UDP, is the packet from server being lost (not received)?
You can see my questions show misunderstanding of how it works in general. Unfortunately datasheet is full of technical details about the chip, but how it works in general is only depicted in the page 28 on nice low quality diagram, without any explanations. According to it, I can initialize socket in SOCK_UDP mode, and that’s all. Which operations, in which sequence can I perform on open socket, is not clear.