Exemplo n.º 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));
	}
Exemplo n.º 2
0
    public AfxGoldSrc(MainForm mainForm)
    {
        m_MainForm = mainForm;

        m_PipeComServer = new PipeComServer();
    }
Exemplo n.º 3
0
    //
    // Internal members:

	internal HlaeRemote_1(MainForm mainForm)
	{
        m_MainForm = mainForm;
	}