private void RegisterRemotingInterface(RemotingObject remote)
 {
     Location[] locs       = remote.GetLocations();
     string[]   interfaces = remote.GetInterfaces();
     foreach (Location loc in locs)
     {
         m_neighbourInterfaces[loc] = interfaces;
         m_neighbourRemote[loc]     = remote;
     }
 }
        public void internal_CreateRemotingObjects()
        {
            lock (m_lockObject)
            {
                if (m_tcpChannel == null)
                {
                    m_myRemote   = new RemotingObject(m_interfaces, m_myLocations.ToArray());
                    m_tcpChannel = new TcpChannel(m_tcpPort);

                    ChannelServices.RegisterChannel(m_tcpChannel, false);
                    RemotingServices.Marshal(m_myRemote, "OpenSimRemote2", typeof(RemotingObject));
                }
            }
        }