I'm going to attempt to create middleware in C# and i need some advice. What I'm looking to do is have an open socket, then when our VB app connects to it, it makes another socket and keep the newly connected one open. It then has to get the database name from the client that just connected to it. Then it waits for the client to send it a SQL string. For example if the SQL string is Select, it selects, and returns a data table object. If it is insert or update, it inserts or updates and returns the number of rows effected. I'm looking for some code examples, or maybe even some tutorials. If anybody can point me in the right direction I'd really appreciate it!