Hi Martin,
Thanks for your posting. As for the question you mentioned, here are some
of my suggestions:
Generally when we want to make a host service which listening to a certain
port on the server and process the comming requests. We can use the Socket
class or the encapsulated TcpListener class in .net framework(the latter is
more convenient to use). And in our service application( winform or a NT
service) we can just start a main workerthread which create a certain
server socket or TcpListenter that listening to the certain port( only one
socket can bind to a certain port ). And when new client request comming,
we can retreive the comming request and build a new socket or a TcpClient
class and communicate with the client, at this time additional new worker
threads can be created to handle the client request( the client socket or
TcpClient).
If you've interests on detailed info of network programming, I think the
<C# Network Programming> or <Network programming for windows> two books are
good.
In addition, here are some reference on .net network programming:
#Using TCP Services
http://msdn.microsoft.com/library/en...gtcpservices.a
sp?frame=true
#Multi-threaded .NET TCP Server Examples
http://www.thecodeproject.com/dotnet/dotnettcp.asp
Hope also helps. Thanks.
HAPPY HOLIDAY
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)