Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开始在一个项目中使用 NanoHTTPD。事实上,它的简单性非常好。不幸的是,我需要处理同时连接,例如我有一个很长的响应,同时服务器不会被阻塞。
你有什么建议吗?我需要它像 Nano 一样简单且功能丰富。
NanoHttpd 使用简单的 1-request/1-thread 多线程模型处理传入请求,并且它也是多实例友好的,因此如果需要,您可以启动服务器的多个实例来处理不同端口上的连接。