473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Searching for remoted service

I am experimenting with a new facility that will replace an existing
client/server environment that uses named pipes for communication.

The client application uses SHBrowseForFolder standard Windows dialog to
generate a list of all domains and all servers within those domains, thus
permitting the client to select a server to which to attempt a connection.
The client attempts to connect to a specific named pipe on that server and
reports any errors. The named pipe in this case is managed by a Windows
Server (C++ 6) that permits multiple connections from a large number of
potential clients, and there may be a significant number of systems actually
running this service (and any client may connect to one or more of these
systems).

The new service is to be written in C# and will use remoting to permit the
client to make requests from one or more servers.

1. In C#, how can I get a list of all of the domains and servers? I do no
see any reference to the above named standard dialog in the list of system
dialogs supported from .Net, nor can I find any way to enumerate the domains
and servers within those domains.

2. What is the simplest method for determining whether a specific server is
executing a copy of my .Net service? I can try to connect, but that may
involve a timeout value that is too long -- ideally I would like to present
the user with a list of domain\server names that support my service, rather
than a complete list of servers and then fail the connection because the
service is not available on that system.

Note that this is not a web application, and I am not certain that WSDL is
appropriate here at all. And even if it is, In my quick reading of it I
became completely overwhelmed with respect to how I might configure and use
it!

-Ken
Nov 16 '05 #1
1 1288
Hi Ken,

Ken Allen wrote:
I am experimenting with a new facility that will replace an existing
client/server environment that uses named pipes for communication.

The client application uses SHBrowseForFolder standard Windows dialog to
generate a list of all domains and all servers within those domains, thus
permitting the client to select a server to which to attempt a connection.
The client attempts to connect to a specific named pipe on that server and
reports any errors. The named pipe in this case is managed by a Windows
Server (C++ 6) that permits multiple connections from a large number of
potential clients, and there may be a significant number of systems
actually running this service (and any client may connect to one or more
of these systems).

The new service is to be written in C# and will use remoting to permit the
client to make requests from one or more servers.

1. In C#, how can I get a list of all of the domains and servers? I do no
see any reference to the above named standard dialog in the list of system
dialogs supported from .Net, nor can I find any way to enumerate the
domains and servers within those domains.
There are no standard classes. You have to use P/Invoke to standard windows
functions to get the list.

2. What is the simplest method for determining whether a specific server
is executing a copy of my .Net service? I can try to connect, but that may
involve a timeout value that is too long -- ideally I would like to
present the user with a list of domain\server names that support my
service, rather than a complete list of servers and then fail the
connection because the service is not available on that system.


No quick way to test for a service. Remoting call is made upon the first
method invocation. And unfortunately you do not have control build-in
control over tcp channel timeout, only over http channels. Of course there
is workaround.

So better way is: prepare a list of possible server, and use a factory
method for testing if the server is available or can serve the request.

For proper timing out of tcp channel, you can invoke the first method call
with a async delegate, and use the ar.WaitOne(...) to time the waiting.

Hope that helps
Sunny

P.S. the framework.remoting is more appropriate group.
Nov 16 '05 #2

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

Similar topics

10
by: Not Available | last post by:
On the host server: namespace JCart.Common public class JCartConfiguration : IConfigurationSectionHandler private static String dbConnectionString; public static String ConnectionString { get...
2
by: Dan | last post by:
I am having a problem trying to assign event handlers to the events of a remoted object. I have one program that registers the object for remoting, Another that connects and calls methods on the...
3
by: Z D | last post by:
Hello, I have a remoted object which throws an exception if something goes bad. eg: throw new Exception("Something went wrong."); When I test the assembly locally on my machine (without...
1
by: Steve Drake | last post by:
All, I have a WEBPAGE that needs to pass the current credentials to a .NET remoted object so this can pass the credentials to a SOAP WEBSERVICE (All written in C#) But I cannot see how I pass...
3
by: Grant Schenck | last post by:
Hello, I have a Windows Service developed in C# .NET. I'm making it a remote server and I can, via an IPC Channel, expose methods and call them from a client. However, I now want my remoted...
1
by: Dave Evans | last post by:
I have a number of remotable DLLs, which are hosted by a Windows Service. The Windows Service simply registers the remotable DLLs using RemotingConfiguration.Configure. The configuration file is as...
0
by: =?Utf-8?B?Sm9obiBXLg==?= | last post by:
A client application connects to a TCP-remoted object from a service on localhost for method invocations and events. It works as advertised. But... if the network cable (LAN) gets disconnected,...
0
by: VishalSimon | last post by:
Plese help, I can not call the method after creating the remoted object in C#.Net I do not know what is wrong with my code ? This is the code: Remotable Class:
7
by: Stephenoja | last post by:
Hello Guys, I have a challenge here and would really appreciate some help. I have customer bills that are all done in excel with a template and stored in directories by month order. At the end...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.