Ejemplo n.º 1
0
            void network_NewConnection(NetworkLevel2Connection net2con, ConnectionInfo connectioninfo)
            {
                LogFile.WriteLine("Testnetrpc , new connection " + connectioninfo);
                RpcController rpc = new RpcController(network);

                TestController.GetInstance().rpc = rpc;
                Testing.TestInterface_ClientProxy testinterface_clientproxy = new OSMP.Testing.TestInterface_ClientProxy(rpc, null);
                testinterface_clientproxy.SayHello();
            }
Ejemplo n.º 2
0
 public void SayMessage(IPEndPoint connection, string message)
 {
     LogFile.WriteLine("Message: " + message);
     Testing.TestInterface_ClientProxy testinterfaceclientproxy = new OSMP.Testing.TestInterface_ClientProxy(rpc, connection);
     Testing.TestClass testobject = new OSMP.Testing.TestClass();
     testobject.name       = "blue river";
     testobject.indexes    = new int[0];
     testobject.childclass = new OSMP.Testing.ChildClass();
     testinterfaceclientproxy.SendObject(testobject);
 }
Ejemplo n.º 3
0
 public void SayHello(IPEndPoint connection)
 {
     LogFile.WriteLine("Hello!");
     Testing.TestInterface_ClientProxy testinterfaceclientproxy = new OSMP.Testing.TestInterface_ClientProxy(rpc, connection);
     testinterfaceclientproxy.SayMessage("Hello sent via SayMessage!");
 }
Ejemplo n.º 4
0
 public void SayMessage(IPEndPoint connection, string message)
 {
     LogFile.WriteLine("Message: " + message);
     Testing.TestInterface_ClientProxy testinterfaceclientproxy = new OSMP.Testing.TestInterface_ClientProxy(rpc, connection);
     Testing.TestClass testobject = new OSMP.Testing.TestClass();
     testobject.name = "blue river";
     testobject.indexes = new int[0];
     testobject.childclass = new OSMP.Testing.ChildClass();
     testinterfaceclientproxy.SendObject(testobject);
 }
Ejemplo n.º 5
0
 public void SayHello(IPEndPoint connection)
 {
     LogFile.WriteLine("Hello!");
     Testing.TestInterface_ClientProxy testinterfaceclientproxy = new OSMP.Testing.TestInterface_ClientProxy( rpc, connection );
     testinterfaceclientproxy.SayMessage("Hello sent via SayMessage!");
 }
Ejemplo n.º 6
0
 void network_NewConnection(NetworkLevel2Connection net2con, ConnectionInfo connectioninfo)
 {
     LogFile.WriteLine("Testnetrpc , new connection " + connectioninfo);
     RpcController rpc = new RpcController(network);
     TestController.GetInstance().rpc = rpc;
     Testing.TestInterface_ClientProxy testinterface_clientproxy = new OSMP.Testing.TestInterface_ClientProxy(rpc, null);
     testinterface_clientproxy.SayHello();
 }