13.07.2015 Views

Remoting in C# and .NET - The Journal of Object Technology

Remoting in C# and .NET - The Journal of Object Technology

Remoting in C# and .NET - The Journal of Object Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

REMOTING IN <strong>C#</strong> AND .<strong>NET</strong><strong>The</strong> <strong>C#</strong> code for this application is given <strong>in</strong> List<strong>in</strong>g 3.List<strong>in</strong>g 3 – Chat Session Client/Server Application Us<strong>in</strong>g <strong>Remot<strong>in</strong>g</strong>us<strong>in</strong>g System;us<strong>in</strong>g System.Runtime.<strong>Remot<strong>in</strong>g</strong>;us<strong>in</strong>g System.Runtime.<strong>Remot<strong>in</strong>g</strong>.Channels;us<strong>in</strong>g System.Runtime.<strong>Remot<strong>in</strong>g</strong>.Channels.Http;us<strong>in</strong>g System.Collections;namespace <strong>Remot<strong>in</strong>g</strong> {public class ChatServer : MarshalByRef<strong>Object</strong> {// Fieldsprivate ArrayList clients = new ArrayList(); // Names <strong>of</strong> clients96 JOURNAL OF OBJECT TECHNOLOGY VOL. 3, NO. 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!