Mixe for Privacy and Anonymity in the Internet
CALastMixBChannelList.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2006, The JAP-Team
3  * All rights reserved.
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * - Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  *
10  * - Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  *
14  * - Neither the name of the University of Technology Dresden, Germany nor
15  * the names of its contributors may be used to endorse or promote
16  * products derived from this software without specific prior written
17  * permission.
18  *
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
24  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30  * POSSIBILITY OF SUCH DAMAGE
31  */
32 #ifndef __CALASTMIXBCHANNELLIST__
33 #define __CALASTMIXBCHANNELLIST__
34 
35 #include "../CAMuxSocket.hpp"
36 #include "../CASymChannelCipher.hpp"
37 #include "../CAMutex.hpp"
38 #include "CAChain.hpp"
39 
41  timespec deadline;
43 };
44 
50 
52 
54 
57 };
58 
59 
61  public:
64 
65  t_lastMixBChannelListEntry* add(HCHANNEL a_channelId, CASymChannelCipher* a_channelCipher, CAChain* a_associatedChain);
67  void removeFromTable(t_lastMixBChannelListEntry* a_channelEntry);
68 
69  private:
73 
75 
76 };
77 #endif //__CALASTMIXBCHANNELLIST__
unsigned short UINT16
Definition: basetypedefs.h:133
unsigned int UINT32
Definition: basetypedefs.h:131
void removeFromTable(t_lastMixBChannelListEntry *a_channelEntry)
t_lastMixBChannelListEntry * getEntryInternal(HCHANNEL a_channelId)
t_lastMixBChannelListEntry * add(HCHANNEL a_channelId, CASymChannelCipher *a_channelCipher, CAChain *a_associatedChain)
t_lastMixBChannelListEntry * get(HCHANNEL a_channelId)
t_lastMixBChannelListEntry ** m_pChannelTable
timespec deadline
t_deadlineEntry * nextDeadline
class CAChain * associatedChain
t_deadlineEntry * firstResponseDeadline
HCHANNEL channelId
UINT16 remainingDownstreamPackets
t_lastMixBChannelListEntry * rightEntry
t_lastMixBChannelListEntry ** rightEntryPointerOfLeftEntry
class CALastMixBChannelList * associatedChannelList
CASymChannelCipher * channelCipher
UINT32 HCHANNEL
Definition: typedefs.hpp:34