Groups | Blog | Home
all groups > dotnet remoting > july 2006 >

dotnet remoting : Remoting and Sockets


LordHog NO[at]SPAM hotmail.com
7/28/2006 10:32:31 AM
Hello,

I was wondering what are the differences between using the
System.Runtime.Remoting vs. System.Net.Sockets? I am sort of confused
what the differences are between them and which particular framework is
best suited for its own niche.

I am planning on implementing some basic communications between a
server that will run in the lab and from desktop machines that will be
used for development/testing/integration activities. I would like
client to query the server to see if anyone is currently using the
facilities provided by the server and if no one is using the facilities
provided that individual would have sole control until they logged out,
but the server would also inform a client who has control. Some sort of
basic items like that. What would be the better class framework to use,
Remoting or Sockets? Thanks

Mark
Graven
7/30/2006 8:03:23 AM

[quoted text, click to view]

These are entities of different levels. Remoting uses (but not limited
to) sockets internally as a transport level and operates as an object
request broker from the look of application. I think you should
consider using remoting, it will save you lots of time.

Best wishes, Stan.
Spam Catcher
7/31/2006 12:00:00 AM
LordHog@hotmail.com wrote in news:1154107951.129180.249020
@m79g2000cwm.googlegroups.com:

[quoted text, click to view]

Sockets send raw data requests across the wire.

Remoting is used for interprocess communications - providing a framework
for distributed computing (like CORBA). You can send objects over remoting
or even execute remote functino calls.

For what you're doing, I suggest remoting.

ThunderMusic
7/31/2006 8:33:13 AM
I'd recommend sockets only if you need to, like if you need an extra
performance boost or something like it... but if I stand with what you said
you need I'd definitly go with remoting... Remoting is almost like having
the power of your server on the local machine... Your objects will work
almost like if they were local... you can call their methods, you can
receive their events (you need to follow certain patterns, but you can do
it), get or set their properties, et al. In your situation, Remoting is
probably your best friend... ;) Beside, there is lots and lots of
documentation on remoting out there : articles on internet, msdn, books, et
al. It's a bit more complicated to find documentation for sockets in .NET
and it would clearly be too much work for what you need...

I hope it helps

ThunderMusic

[quoted text, click to view]

LordHog NO[at]SPAM hotmail.com
7/31/2006 5:34:40 PM
Thanks to everyone who has replied and I will definitely go the
remoting route everyone feels it would be the best approach. If I do
need the increased speed after testing I will go the sockets route as
indicated. Thanks to all that took the time to respond.

Mark



[quoted text, click to view]
AddThis Social Bookmark Button