|
Getting started: sample .NET client-server application with SmartChannels. |
|
|
|
|
Page 1 of 5 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
|