Need VB.Net code - client/server system. Server must be multi-threaded.
Posted on 2003-03-30
I need to implement a client/server system in VB.NET.
The bulk of my experience is in C on UNIX, Java and Delphi. What I'd do in any of those languages/environments is make a multi-threaded server that takes socket connections via TCP/IP. On a Windows environment, I'd make the server a service so it is always available and running. Now, I have done this sort of thing before in those other languages, but I'm having trouble getting started, in VB.NET.
I also need the server to perform periodic work on the file system - and not just process incoming TCP/IP connections. Presumably this should be in a thread of its own.
There are various code samples on MSDN for socket servers and simple services but I'm having trouble particularly working out how to create and manage threads in VB.NET.
What I would like is working code for a client/server system that meets these requirements. That is, I want the server to be a service and to be multithreaded. It must be capable of listening for incoming socket connections and to perform other work apart from the socket side of things.
If EE allows me to, I'll award extra points for swift and helpful solutions!!