multi client web-server

Hi, I'm a newbie to the Arduino environment. With regard to the Ethernet web server, is it possible to have a few clients connected on the network and have data be sent (say from an analogue input) to a specific client on the network? Has anyone tried something like this? How would you identify each client? By their unique IP addresses and making use of an "if" function?

Thanks :)

Veee:
to a specific client on the network?

How would you identify each client?

That’s for you to decide. If the clients are not interchangeable then you need to decide how to identify the one that you want to pass the data to.

Veee: With regard to the Ethernet web server, is it possible to have a few clients connected on the network and have data be sent (say from an analogue input) to a specific client on the network? Has anyone tried something like this?

Most web servers work like that. So, yes.

Veee: How would you identify each client? By their unique IP addresses and making use of an "if" function?

The IP address would be a good starting point.

"if" isn't a function.

I don't want to nit-pick, but it's a statement.

http://www.cprogramming.com/tutorial/lesson2.html

http://www.lmgtfy.com/?q=c%2B%2B+if

Hi nick ,

how can i make the webserver identify users by password? i have the same problem

thanks in advance i hope you understand my question and help me

how can i make the webserver identify users by password?

What is the server serving up? Is it serving the form that the user logs in using? If so, then the form sent back to that user on the next invokation must contain a hidden field with some token that allows the server to identify that user again, when that user makes another request.

PaulS:
the form sent back to that user on the next invokation must contain a hidden field with some token that allows the server to identify that user again, when that user makes another request.

A session cookie would be the most obvious way to hold it.

To be honest I think it's pushing available RAM to try to do a web server on a processor with 2 Kb of RAM. Especially one that does authentication, passwords, etc.

But you can probably manage if you keep it short. Better look up the HTTP protocol and find how to do SEND, PUT and cookies. I did something on it a while ago here:

http://www.gammon.com.au/forum/?id=6498

The code is in Lua but the explanations are in English. No doubt the same material is covered in thousands of other web pages.

The basics are pretty trivial, but you need to focus on the details.