Beispiel #1
0
            //
            // Public members:

            public HlaeRemoting(MainForm mainForm)
            {
                //
                // Init global scope class that will be accessed by the remote:

                m_HlaeRemote_1 = new HlaeRemote_1(mainForm);

                //
                // Start remoting server:
                //
                // based on MS example: http://msdn.microsoft.com/en-us/library/system.runtime.remoting.channels.ipc.ipcchannel(VS.80).aspx

                // Create the channel:
                m_ServerChannel = new IpcChannel("localhost:31337");

                // Register the channel:
                ChannelServices.RegisterChannel(m_ServerChannel, false);

                RemotingServices.Marshal(m_HlaeRemote_1, HLAE_REMOTING_OBJ_URI_HlaeRemote_1, typeof(IHlaeRemote_1));
            }
Beispiel #2
0
    //
    // Public members:

    public HlaeRemoting(MainForm mainForm)
	{
		//
		// Init global scope class that will be accessed by the remote:

        m_HlaeRemote_1 = new HlaeRemote_1(mainForm);
		
		//
		// Start remoting server:
        //
		// based on MS example: http://msdn.microsoft.com/en-us/library/system.runtime.remoting.channels.ipc.ipcchannel(VS.80).aspx

		// Create the channel:
		m_ServerChannel = new IpcChannel("localhost:31337");

		// Register the channel:
        ChannelServices.RegisterChannel(m_ServerChannel, false);

		RemotingServices.Marshal(m_HlaeRemote_1, HLAE_REMOTING_OBJ_URI_HlaeRemote_1, typeof(IHlaeRemote_1));
	}