Re: Determine size of remote object

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: René Titulaer (RenTitulaer_at_discussions.microsoft.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 00:23:03 -0700

Ken,

Thanks for your response. Does it make sense to encrypt binary data you
think? Do I gain anything when uisng compression on binary data?

Thanx!

"Ken Kolda" wrote:

> I don't know of any built-in way to get the message size, but a couple of
> ideas come to mind:
>
> 1) Use a tool such as TcpTrace to monitor the network activity between
> client and server. It may be able to generate packet information such as
> packet size.
>
> 2) Write your own "proxy" app which simply listens for data on a part and
> forwards it to another server. The you can record whatever information you
> want as the message goes through the wire.
>
> 3) Write a channel sink that records the size of each message as its being
> serialized to the remoting stream.
>
> Options #1 and #2 are probably the easiest to implement, especially if
> you've never written a channel sink. Plus, they would give more accurate
> results of what actually goes across the wire.
>
> By the way, it is possible to use compression with remoting as well. There
> are some third-party products such as GenuineChannels
> (www.genuinechannels.com) that add this feature.
>
> Ken
>
>
> "René Titulaer" <RenTitulaer@discussions.microsoft.com> wrote in message
> news:406CE987-0372-4EF4-9246-EA6EE4C2FDA1@microsoft.com...
> > Dear all,
> >
> > our application runs on a lap-top, users are connecting to a server using
> > gsm (9600 baud). We did choose for a windows application on the client and
> > now we have to choose how to get to the server: .net remoting or
> webservices.
> >
> > Webservices will result in large messages, which we don't want but we can
> > compress them by using zip. On the other hand we can choose .net remoting
> > (tcp/binary). I like to compare webservices compressing with .net
> remoting. I
> > do already know the size when I use webservices/compressing (using soap
> > extensions).
> >
> > Does anybody know how to determine the packet size of a remoting object?
> >
> > Thanx,
> > René
>
>
>



Relevant Pages

  • Re: Remoting exception when using interfaces
    ... Ken Kolda wrote: ... > have to pass it a class Type, not an interface (after all, the remoting ... a stub implementation of CustomerManager can be generated ...
    (microsoft.public.dotnet.framework.remoting)
  • communication over http
    ... some binary data as well. ... I was thinking of something like RMI in Java ... or Remoting in .NET. ...
    (comp.lang.pascal.delphi.misc)