GAMSServerClass.cs
1using System;
2using System.Runtime.Remoting;
3using System.Runtime.Remoting.Channels;
4using System.Runtime.Remoting.Channels.Tcp;
5
6
7namespace GAMSServer
8{
10 {
11 static void Main(string[] args)
12 {
13 TcpServerChannel channel = new TcpServerChannel(8686);
14 ChannelServices.RegisterChannel(channel);
15 RemotingConfiguration.RegisterWellKnownServiceType(
17 "GAMSSERVER",
18 WellKnownObjectMode.SingleCall);
19 Console.WriteLine("press to exit ");
20 Console.ReadLine();
21 }
22 }
23}
24
This example demonstrates how to implement a simple GAMS Server. The example has two parts: GAMSServe...