summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Event/CRC.h
blob: 57ae31398c31b33c2d7147fbfe0350b02acb388c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* -*- C++ -*- */
//=============================================================================
/**
 *  @file CRC.h
 *
 *  $Id$
 *
 *  @author RTING
 *  @author Integrated by Balachandran Natarajan <bala@dre.vanderbilt.edu>
 *
 * The Event Channel uses some of this classes to simplify its event
 * manipulation.
 * For instance it keeps a reference counted RtecEventComm::EventSet
 * and classes to automatically manage this reference count.
 *
 *
 */
//=============================================================================
#ifndef TAO_EC_CRC_H
#define TAO_EC_CRC_H
#include "ace/pre.h"
#include "ace/OS.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */



/**
 * @namespace TAO_Event_CRC
 *
 * @brief  Temp CRC routines - need to be able to compute CRC's
 * across blocks of memory.
 *
 * @NOTE: That this ONLY works with 32-bit machines.
 *
 */
namespace TAO_Event_CRC
{

  /// Initialize the CRC
  void initialize (void);

  /// Compute CRC
  u_int compute_crc (iovec iov[],
                     int iovcnt);
 }

#include "ace/post.h"
#endif /*TAO_EC_CRC*/