I have a RCM4000 that I have begun to work with. I have Browse LED sample compiled and working. I would like to check the IP addy of the user at the other end of the webpage in order to decide if they can change the LEDs. Is there a variable or method I can access, perhaps in the http.lib or something, that can give me the users IP?
Looks like you can call http_getSocket() to get the TCP socket, then get the client IP address from the hisaddr field of the TCP socket structure. Looks like getpeername() will give you the IP address if you don’t want to acces sthe structure directly.