~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to lib/gui_rpc_client.C

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// To view the GNU Lesser General Public License visit
16
16
// http://www.gnu.org/copyleft/lesser.html
17
17
// or write to the Free Software Foundation, Inc.,
18
 
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 
20
20
// This file is the underlying mechanism of GUI RPC client
21
21
// (not the actual RPCs)
109
109
    return 0;
110
110
}
111
111
 
112
 
int RPC_CLIENT::init_asynch(const char* host, double _timeout, bool _retry) {
 
112
int RPC_CLIENT::init_asynch(
 
113
    const char* host, double _timeout, bool _retry, int port
 
114
) {
113
115
    int retval;
114
116
        memset(&addr, 0, sizeof(addr));
115
117
    addr.sin_family = AF_INET;
116
 
    addr.sin_port = htons(GUI_RPC_PORT);
 
118
    addr.sin_port = htons(port);
117
119
    retry = _retry;
118
120
    timeout = _timeout;
119
121
 
220
222
    n = snprintf(buf, sizeof(buf), "%s%s", nonce, passwd);
221
223
    if (n >= (int)sizeof(buf)) return ERR_AUTHENTICATOR;
222
224
    md5_block((const unsigned char*)buf, (int)strlen(buf), nonce_hash);
223
 
    sprintf(buf, "<auth2>\n<nonce_hash>%s</nonce_hash>\n<auth2>\n", nonce_hash);
 
225
    sprintf(buf, "<auth2>\n<nonce_hash>%s</nonce_hash>\n</auth2>\n", nonce_hash);
224
226
    retval = rpc.do_rpc(buf);
225
227
    if (retval) return retval;
226
228
    while (rpc.fin.fgets(buf, 256)) {
306
308
    return ERR_NOT_FOUND;
307
309
}
308
310
 
309
 
const char *BOINC_RCSID_6802bead97 = "$Id: gui_rpc_client.C 13941 2007-10-24 15:30:39Z romw $";
 
311
const char *BOINC_RCSID_6802bead97 = "$Id: gui_rpc_client.C 14681 2008-02-06 00:10:31Z davea $";