ASP.NET/IIS: How can I serve TCP connections using a custom protocol (i.e. without WCF)?

635 views Asked by At

I have an ASP.NET MVC website that needs to administer remote devices. These remote devices speak a custom protocol over TCP on a non-standard port. To communicate with these devices, I use a TcpListener and maintain connections with all of them. When an administration request comes through the website, I send data to the appropriate device through its TCP connection.

I have been able to successfully create a TcpListener in Application_Start and serve connections. However this doesn't work if IIS has shutdown (or never started) my app pool.

I would like incoming TCP connections on my specific port to start up the app pool and connect to my TcpListener. Is this possible?

0

There are 0 answers