im very new to arduino and im a bit confused about how the arduino client connect to a server.
in general I know about two common approaches to client-server connections:
- http request-response (stateless)
- open socket connection (persistent)
i'm trying to understand what approach is common with the arduino, and specifically in all the example code.
i looked at the examples where the arduino is the client side, and i see that they all use client.connect(server, 80)
does it means that this is a socket connection and that until I call 'disconnect' I will have an open socket between client and server and I can send data back and forth?
or will the server close the connection directly after returning the first response?