void RemoteDisconnect() { m_remoteConnection = null; var ev = this.NewMessageEvent; if (ev != null) { ev(); } }
public static DirectConnection Connect(IGame game) { var connection = new DirectConnection(); game.Connect(connection); if (connection.m_remoteConnection == null) throw new Exception(); return connection; }
public static DirectConnection Connect(IGame game) { var connection = new DirectConnection(); game.Connect(connection); if (connection.m_remoteConnection == null) { throw new Exception(); } return(connection); }
public void Disconnect() { var remote = m_remoteConnection; m_remoteConnection = null; remote.RemoteDisconnect(); var ev = this.NewMessageEvent; if (ev != null) { ev(); } }
void SetRemote(DirectConnection remote) { m_remoteConnection = remote; }
public DirectConnection(DirectConnection remote) { m_remoteConnection = remote; m_remoteConnection.SetRemote(this); }
public void Disconnect() { var remote = m_remoteConnection; m_remoteConnection = null; remote.RemoteDisconnect(); var ev = this.NewMessageEvent; if (ev != null) ev(); }
void RemoteDisconnect() { m_remoteConnection = null; var ev = this.NewMessageEvent; if (ev != null) ev(); }
public static void NewConnection(DirectConnection clientConnection) { var connection = new DirectConnection(clientConnection); s_callback.BeginInvoke(connection, null, null); }