how do i get TcpListener to accept multiple connections and work with each one individually?
- 阅读更多 关于 how do i get TcpListener to accept multiple connections and work with each one individually?
问题 I have an SMTP listener that works well but is only able to receive one connection. My C# code is below and I am running it as a service. My goal is to have it runnign on a server and parsing multiple smtp messages sent to it. currently it parses the first message and stops working. how can I get it to accept the 2nd, 3rd, 4th... SMTP message and process it like it does the first? here is my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using