Is that possible to create our own server using TcpListener class with IIS being uninstalled?
Is that possible to create our own server using TcpListener class with IIS being uninstalled开发者_StackOverflow?
Yes.
You can listen for incoming TCP/IP connections with TcpListener
and implement any protocol you want.
If you want to handle HTTP yourself a better approach might be to use HttpListener
rather than implementing the HTTP protocol yourself.
Yes, TcpListener uses TCP/IP stack and has nothing to do with IIS, but if you are trying to create a WebServer using TcpListener, it'd be kind of waste of effort, don't you think?
精彩评论