I have a application that run as Windows Service. I also created another
Windows Form Application that manage the Service like MS SQL Server Service
Manager did. Service Manager need to know some variable value in Service,
include some massive data.
I am using the TCP Socket, is there a better way? Thanks.
MikeZ,
While you can use a TCP socket, you have to code a number of things from
scratch (like authentication, authorization, message encoding, etc, etc).
It's almost always going to be easier to use some pre-existing framework for
this.
To that end, I recommend Remoting, or Windows Communications Foundation,
with WCF being my first choice.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
>I have a application that run as Windows Service. I also created another
> Windows Form Application that manage the Service like MS SQL Server
[quoted text clipped - 3 lines]
>
> I am using the TCP Socket, is there a better way? Thanks.
MikeZ - 31 Jul 2007 15:56 GMT
Nicholas,
Does com WCF come with framework 3.0? I am using VS.NET 2005. Could you
explain more on Remoting? Thanks.
> MikeZ,
>
[quoted text clipped - 13 lines]
> >
> > I am using the TCP Socket, is there a better way? Thanks.
Nicholas Paldino [.NET/C# MVP] - 31 Jul 2007 16:38 GMT
MikeZ,
WCF is part of the .NET 3.0 framework. If you are limited to using .NET
2.0, then you won't have access to it.
With remoting, you probably want to look at the Remoting Overview in the
documentation:
http://msdn2.microsoft.com/en-us/library/kwdt6w2k.aspx

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Nicholas,
>
[quoted text clipped - 22 lines]
>> >
>> > I am using the TCP Socket, is there a better way? Thanks.