Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Update on user define Port

deadmouse
2009-02-09
2013-05-28
  • deadmouse
    deadmouse
    2009-02-09

    // OLD code //
    public int Port
    {
        get
        {
            CheckConnected();
            return m_session.getPort();
        }
    }

    // NEW code if you want to define your own port
    public int Port
    {
        get
        {
            CheckConnected();
            return m_session.getPort();
        }
        set
        {
            SSH_TCP_PORT = value;
        }
    }

    // our server uses other ports besides 22, so I have to do this.

     
    • deadmouse
      deadmouse
      2009-02-09

      Sorry,

      Thread title was supposed to be
      "Update: User Define Port"