A networking device, method, and web server software architecture are
provided. The device may include a web server application program
configured to run on an operating system of the device, and an
event-based signaling mechanism configured to signal the web server
application program when data has arrived on a socket of the operating
system, by triggering an operating system-level signaling event. The web
server application program is configured to read data off of the socket
in response to detecting the event, without polling the socket first to
determine that data is ready to be read from the socket.