Demonstrates using .NET Remoting to broadcast to client subscribers. There are three parts: 1) Server.cs - for console app responsible for broadcasting messages (date/time stamp currently) 2) Client.cs - for console app that registers with server to subscribe to broadcasts 3) Agent.cs - class library that facilitates/eposes the interfaces for our client/server communication To use, create the three project types defined above and include the appropriate code found in this snippet. In both the Server and Client projects, add references to the Agent.DLL project. Then, modify the IP address in the ClientClass's creation of the AbstractServer remoteObject to a string …

Member Avatar
Member Avatar
+2 forum 3

is it possible to send data from remote object to the server in C# remoting using TCP channel???? Please reply thanking you in advance....................

Member Avatar
Member Avatar
+0 forum 4

I searched but couldn't find a proper answer for this...may be I didn't look deep enough. Anyways, little insight from you guys will only make things easier. So hear me out. this is for my final year research project. I just need concepts and if any links I can read more. So this application is a distributed one for a hotel which has 3 branches (including the main hotel) in location A, B, C. I & (my colleagues) have developed the database, business logic, and 3 separate GUIs for the billing, bar and the kitchen. All are working perfectly and …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I have code which allows a client console to connect to a server console using .NET Remoting with a shared dll, and then perform some operations. The only problem I'm aving, is that I want the main bulk of the programming logic to be performed on the server itself (within the server class, not the library) - to access the database etc. Eventually the (multiple) Clients and Server application will be on seperate physical machines (for now they are on one). Below is the code I have so far. The server console says "press any key", and the …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am currently doing a project on remote object communication between Flex 4.1 SDK and Java using Flerry API.I need a Java program that can capture the user keystrokes while the user enter's text in the action-script text-area. i.e I need Java program that captures the keystrokes as user enters the text in a text area in action-script. I find it very inefficient to call a Java method every-time the user enters a character in the text area. Can any one suggest a solution for this?....

Member Avatar
Member Avatar
+0 forum 3

This is the form.cs in my REMOTE SERVER [CODE=c#] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; using Microsoft.Win32; namespace remoteserver { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { TcpChannel ch = new TcpChannel(8085); ChannelServices.RegisterChannel(ch); RemotingConfiguration.RegisterWellKnownServiceType(typeof (remoteclass.xx), "Ankit", WellKnownObjectMode.Singleton); //RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); //if(rkApp.GetValue("RemoteServer")==null) //rkApp.SetValue("RemoteServer", Application.ExecutablePath.ToString()); } } } [/CODE] And This code is present in my Remote Client It returns the sumation of two numbers in textBox1 and textBox2 in textBox3 [CODE=C#] using System; …

Member Avatar
Member Avatar
+0 forum 3

Hi, The problem statement is: there is an application on the clients machine, which has a event that is called from the form. there is a VB script (a batch file), an .exe file, when clicked, this in turn creates a .doc file, this .doc file shud be displayed on the client machine. all these should be done on the server. the probelm here is, i have done it which runs on the clients machine and displays the .doc file to the client, but, the running of the vb script shud be on the server side. shud i use remoting …

Member Avatar
+0 forum 0

Quite a few people have been asking how they can get their applications to talk to each other. More specifically, they have been wanting to know how to access information from another running application using .NET Remoting. Not having done this before, I decided to take up the challenge and create a simple example of this approach. Thus, this code snippet and attached solution. I only posted relevant code in the snippet, but all projects and files can be found in the attached solution. The SimpleServer form application runs a form having a textbox that I added some default text …

Member Avatar
Member Avatar
+2 forum 2

The End.