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 / Languages / C# / April 2008

Tip: Looking for answers? Try searching our database.

how to improve a performace to send some of data between machine.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lightdoll - 11 Apr 2008 07:08 GMT
hello everyone.

i need your advice to be implemented my code.

i am making some program to send lots of data to Server.

i wrote some code below.

i am using c++/cli and C#, c and c++.

c or c++ will be client
C# will be Server with Net Remoting.
c++/cli is to send data between c/c++ and c#

c/c++ will pass lots of data like type array to c++/cli.

In c++/cli

there is a function with dllexport like below.

dllexport void received(data arrdata[], int count)
{
after calling this function from c/c++,then just send many data to C#
directry using Net Remoting.
so i want to send data changed to C#.
could you teach me to be implemented here how to improve my code.

}

thanks everyone.
Willy Denoyette [MVP] - 11 Apr 2008 09:20 GMT
> hello everyone.
>
[quoted text clipped - 26 lines]
>
> thanks everyone.

This same question was answered by me, what didn't you like about the answer
given?
This time you changed the second tier from C# to C++/CLI , if you expected a
performance improvement by changing from C# to C++/CLI,  then you are wrong.

As said before the fastest way to pass data between tiers by restricting the
number of tiers to two, the client and the server, everything put in between
will reduce the overall performance.
So the fastest path is:
- a pure client/server Socket scenario, or
- if you prefer/need a remote procedure call like protocol, then a DCOM
transport between C++ and the remote C# server running in a COM+ application
is the second fastest.
Both of above can take advantage of compression in order to increase the
throughput between the two tiers.
In your scenario, you can also apply some form of compression between the
second tier and the server (the remoting tier), but as I said before, you
need to tell us exactly what you are expecting and what you have measured in
terms of transfer speed, but don't expect to transfer 20MB of data
end-to-end over a 100Mb network

Willy.

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.