상속: System.MarshalByRefObject, IConnection
예제 #1
0
        void RemoteDisconnect()
        {
            m_remoteConnection = null;

            var ev = this.NewMessageEvent;

            if (ev != null)
            {
                ev();
            }
        }
예제 #2
0
        public static DirectConnection Connect(IGame game)
        {
            var connection = new DirectConnection();

            game.Connect(connection);

            if (connection.m_remoteConnection == null)
                throw new Exception();

            return connection;
        }
예제 #3
0
        public static DirectConnection Connect(IGame game)
        {
            var connection = new DirectConnection();

            game.Connect(connection);

            if (connection.m_remoteConnection == null)
            {
                throw new Exception();
            }

            return(connection);
        }
예제 #4
0
        public void Disconnect()
        {
            var remote = m_remoteConnection;

            m_remoteConnection = null;

            remote.RemoteDisconnect();

            var ev = this.NewMessageEvent;

            if (ev != null)
            {
                ev();
            }
        }
예제 #5
0
		void SetRemote(DirectConnection remote)
		{
			m_remoteConnection = remote;
		}
예제 #6
0
		public DirectConnection(DirectConnection remote)
		{
			m_remoteConnection = remote;
			m_remoteConnection.SetRemote(this);
		}
예제 #7
0
		public void Disconnect()
		{
			var remote = m_remoteConnection;

			m_remoteConnection = null;

			remote.RemoteDisconnect();

			var ev = this.NewMessageEvent;
			if (ev != null)
				ev();
		}
예제 #8
0
		void RemoteDisconnect()
		{
			m_remoteConnection = null;

			var ev = this.NewMessageEvent;
			if (ev != null)
				ev();
		}
예제 #9
0
 public static void NewConnection(DirectConnection clientConnection)
 {
     var connection = new DirectConnection(clientConnection);
     s_callback.BeginInvoke(connection, null, null);
 }
예제 #10
0
 void SetRemote(DirectConnection remote)
 {
     m_remoteConnection = remote;
 }
예제 #11
0
 public DirectConnection(DirectConnection remote)
 {
     m_remoteConnection = remote;
     m_remoteConnection.SetRemote(this);
 }
        public static void NewConnection(DirectConnection clientConnection)
        {
            var connection = new DirectConnection(clientConnection);

            s_callback.BeginInvoke(connection, null, null);
        }