473,657 Members | 2,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use multiple channels

Hi,
i have two applications, which communicates very extrem together. With the
IPC-Channel i receive often the messages like "all instances of the
requested pipe are busy". So i want to use multiple Channels to communicate,
maybe 10 Connections.

For this scenario i created on each side 10 Servers and 10 Channels, each
Channel has a Number in its Name(for example myserver.0 to myserver.9 and
myclient.0 to myclient.9)

In The Activator.GetOb ject-Method, i use randomly one of the 10
Channel-Names. This works great.

But the Problem is, that all responses use only the first Client-Channel. An
example:

dim Obj as TMyObject = Activator.GetOb ject(GetType(TM yObject),
"ipc://myserver.0/MyObject")
Obj.ExecFunctio n(aMarshalObjec t)

Serversite: aMarshalObject. CallAnotherFunc tion - this use every time the
first
Clientchannel: ipc://myClient.0/ and never any other Channel.

Now the simple Question: How can i specifiy, what channel is used for a
Callback or a Callback of a Callback, ....?
If the an object is created manually(Activa tor.GetObject), i can specifiy
the Channel, but not if objects are created with New on Clientside.

Here's a detailed Example zu explain my Problem:

First the Server starts and do something:

Create 10 Server-Channels(and Receivers of course, too):
ipc://server.0
ipc://server.1
ipc://server.2
....
ipc://server.9

For each Server-Channel a Entrypoint(as WellKnownServic eType) will be
createt:
ipc://server.0/EntryPoint
ipc://server.1/EntryPoint
ipc://server.2/EntryPoint
....
ipc://server.9/EntryPoint

Now can start the Client-Application und creates some Channels(Sender s &
Receivers):
ipc://client.0
ipc://client.1
ipc://client.2
....
ipc://client.9

No Objects should Registred, because the Server-Application never connects
to
a Client-Application.

No can the Remoting start. The Client call:
Dim Entry As EntryPoint =
Activator.GetOb ject(GetType(TR emoteWorkerProc essStart),
"ipc://server.X/EntryPoint") 'X --> 0-9

dim ms as new IO.MemoryStream (...)
EntryPoint.Exec utePage(ms)

This Method change the Roles, now the Client-Application deliver a
Remote-Object(IO.Memor ystream). I see in an Process-Explorer, that my
Clientapplicati on now communicates only over the *first* IPC-Client-Channel.
How can i specify, that my Client application should deliver the
MemoryStream on a specified Channel?

Now the second example. Maybe, we don't use a Memorystream. Let's say we use
a custom MarshalByRefObj ect, that my Client-Application have to send the
Server-Application. And now the Server want to send another
MarshalByRefObj ect back, as a new Call in the Stacktrace(not as a
Return-Message). This is the same Problem.

For information: All calls should be in the same Context as the first Call
in the Entrypoint(i dont mean a native .NET Context, i mean, that no
"shared" Objects should be delivered).
If you want to know, what my Application is: I wrote a custom
Webapplication( without using System.Web) as Windows-Service. A real
Webapplication( ASPX) ist the "Client-Application". If 10 Users call a
Webpage, all Calls should be on differen Channels, even the CallBacks.

And please don't ask me why i didn't write my Application directly in
ASP.NET ;)

Sebastian
Mar 3 '06 #1
0 1332

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
7711
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2 when CH1 and CH2 have been choosen. $_GET gives me "CH2". Is there any way to get all the choosen channels elements? I would be very appreciative for any help. Thank you in anticipation. Regards
3
7952
by: Raseliarison nirinA | last post by:
hi all, i found an unanswered question at http://www.faqts.com/knowledge_base/index.phtml/fid/538 with possible response below. i've tried to send it at faqt.python but can't figure out how to edit the page. so i put it here. i want to kwon if this can convert all wave file. is there other encodage than 8 or 16 bits for .wav files? any bug and comment are welcome --
2
5508
by: web1110 | last post by:
Hi y'all, I'm playing with C# again, trying to implement a remoted calculator exercise. If I include: using System.Runtime.Remoting.Channels.Http; I get the error:
5
5600
by: Uchiha Jax | last post by:
Hello all, Given my general greenness when it comes to remoting and my desire to having something relatively stable up and running in the short term I have been considering the purchase of Genuine Channels. Would I be making a smart purchase here? What things should I be considering before purchasing this product and what is the short of buying it, does anyone know exactly how much easier it will make the process or will it impede my...
0
755
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. The same code works fine in a standalone app. I have inspected System.Runtime.Remoting.dll with ildasm, and I can see the ....Channels.Http namespace there. I verified that the virtual directory is configured to use v2.0.50727 (the error message...
0
1272
by: Sebastian Loncar | last post by:
Hi, i have two applications, which communicates very extrem together. With the IPC-Channel i receive often the messages like "all instances of the requested pipe are busy". So i want to use multiple Channels to communicate, maybe 10 Connections. For this scenario i created on each side 10 Servers and 10 Channels, each Channel has a Number in its Name(for example myserver.0 to myserver.9 and myclient.0 to myclient.9)
1
12220
by: james.cssa | last post by:
When I try to compile the following program on Visual Studio 2005 Pro, the namespace System.Runtime.Remoting.Channels.Tcp is not recongized by the compiler. (The "Tcp" part is highlighted.) And I get the error message: Error 1 The type or namespace name 'Tcp' does not exist in the namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?) C:\Documents and Settings\james\My Documents\Visual Studio...
3
14467
by: breeto | last post by:
If you've configured .NET Remoting to use more than one channel of the same type, for example two TcpClientChannels with unique names, when you want to create a proxy to a remote object how do you specify which channel you want that proxy to use? Thanks in advance.
3
3866
by: sickboy | last post by:
$channels=$_GET; if (empty($channels)) { $channels='blank'; } changechannels($channels); $theatre=$_GET; if (empty($theatre)) { $theatre='splash'; } changetheatre($theatre); $info=$_GET; if (empty($info)) { $info='noinfo'; } changeinfo($info); Hey everyone, I keep getting an error regarding the above code. These are the errors: Notice: Undefined index: channels in /home/forcefed/public_html/index.php on line 5
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.