You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
status - denotes the status of TcpServer - start, stop, running
logger - log each meaningful info/exception
config - denotes what conifg this TcpServer depends on
socket - denotes listening socket of TcpServer
* member functions
initialize (config, http)- according to config, init socket of TcpServer.
start - start TcpServer
change server status to running
one thread's processing loop
uses IO.select to detect kinds of events
when one client connects TcpServer, non-blocking accept it
when clients' data comes, call HttpRequest.parse to parse Clients' request, then call HttpServer.process to pass the request to http, send the results back