// // 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)); }
public AfxGoldSrc(MainForm mainForm) { m_MainForm = mainForm; m_PipeComServer = new PipeComServer(); }
// // Internal members: internal HlaeRemote_1(MainForm mainForm) { m_MainForm = mainForm; }