Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Sockets / Remoting / Web Service ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lucas Ponzo - 06 May 2004 19:16 GMT
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
Chad Z. Hower aka Kudzu - 06 May 2004 20:12 GMT
"=?Utf-8?B?THVjYXMgUG9uem8=?=" <lucasponzo@nospam.nospam> wrote in
news:430B9355-6428-454F-B975-913C51631A6E@microsoft.com:
> 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/
Lucas Ponzo - 06 May 2004 22:01 GMT
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
Tian Min Huang - 07 May 2004 09:33 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.