Sockets / Remoting / Web Service ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm architecting a solution that will collect a lot of data from client machines via WMI. I will install an agent ( client software ) that will comunicate with a server software. The server can list all active agents, and find send a request to update the client machine data. Then this agent will invoke several WMI enabled routines and collect all necessary data. Then this agent will need to send this data via a stream to the server. The server will processes this data and update the database.

What's the best form to perform this client \ server comunication ? Via network sockets, via .net remoting or via web services

This solution is intended to be used in local intranets. But in some cases I will need to send this data via internet.

The software will use ASP.NET technology as the frontend.

Thanks
Lucas Ponzo
 
=?Utf-8?B?THVjYXMgUG9uem8=?= said:
What's the best form to perform this client \ server comunication ? Via
network sockets, via .net remoting or via web services ?

Sockets are simplest and the most flexible, but it depends on your final
destination as you say you are using ASP.NET.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
 
Thanks Chad,

It's better to write a temp file and transfer this file or send a serialized object? What is the better form to transfer it via socket ?

Can you have some example on how to transfer this kind of data via sockets streams in the best way ?

Thanks
Lucas Ponzo
 
Hello Lucas,

Thanks for your post. There is no need to write a temp file in order to
transfer it via socket. To transfer a file, you still need to read it to
memory and then send it via socket. So, I suggest you to send a serialized
object directly.

I recommend you the following MSDN documentations on TCP and related
classes:

Using TCP Services
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconusingtcpservices.asp

TcpClient Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemNetSocketsTcpClientClassTopic.asp

TcpListener Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemNetSocketsTcpListenerClassTopic.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top