~ubuntu-branches/ubuntu/feisty/ncbi-tools6/feisty

« back to all changes in this revision

Viewing changes to connect/test/test_ncbi_dsock.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Id: test_ncbi_dsock.c,v 6.17 2005/07/11 18:24:36 lavr Exp $
 
1
/*  $Id: test_ncbi_dsock.c,v 6.18 2006/01/27 17:12:10 lavr Exp $
2
2
 * ===========================================================================
3
3
 *
4
4
 *                            PUBLIC DOMAIN NOTICE
249
249
            CORE_LOGF(eLOG_Note, ("[Client]  Attempt #%u", (unsigned int) m));
250
250
        id++;
251
251
 
252
 
        *((unsigned long*) buf) = SOCK_htonl((unsigned long) id);
 
252
        *((unsigned long*) buf) = SOCK_HostToNetLong((unsigned long) id);
253
253
 
254
254
        if ((status = DSOCK_SendMsg(client, "127.0.0.1", port, buf, msglen))
255
255
            != eIO_Success) {
282
282
        }
283
283
 
284
284
        memcpy(&tmp, &buf[msglen], sizeof(tmp));
285
 
        if (SOCK_ntohl(tmp) != id) {
 
285
        if (SOCK_NetToHostLong(tmp) != id) {
286
286
            m++;
287
287
            CORE_LOGF(m < max_try ? eLOG_Warning : eLOG_Error,
288
288
                      ("[Client]  Stale message received%s",
381
381
/*
382
382
 * --------------------------------------------------------------------------
383
383
 * $Log: test_ncbi_dsock.c,v $
 
384
 * Revision 6.18  2006/01/27 17:12:10  lavr
 
385
 * Replace obsolete call names with current ones
 
386
 *
384
387
 * Revision 6.17  2005/07/11 18:24:36  lavr
385
388
 * Spell ADDEND
386
389
 *