Home SmartChannels Getting started: sample .NET client-server application with SmartChannels.

Login Form



Getting started: sample .NET client-server application with SmartChannels. PDF Print E-mail
Article Index
Getting started: sample .NET client-server application with SmartChannels.
Server implementation
Defining server configuration
Client implementation
Defining client configuration


Let’s create simple client and server applications using .NET Remoting technology and SmartChannels library.

Clients will connect to the server and send messages for logging. Server will receive the messages and output them to the server’s console.

 

Server interface definition.

Let’s start from Server interface definition (we do not want server code to be available for clients, right? Therefore we need to inform clients what the server can do by providing interface definition):
  • Create new class library project in Visual Studio and call it IMyServer:

  • Put this code into Class1.vb

Public Interface IMyServer
    Sub LogMessage(ByVal message As String)
End Interface

  • Save the project and compile the library. You should get IMyServer.dll file


 

Copyright © 2010 SmartSoftwareBits.com. All Rights Reserved.