Go to the source code of this file.
Data Structures | |
struct | SyncActionData |
Enumerations | |
enum | SyncRegisterActionKind { SRI_Kind_None, SRI_Kind_AdviseInt, SRI_Kind_FetchInt, SRI_Kind_RootAdvise, SRI_Kind_NodeFetch, SRI_Kind_RootStats, SRI_Kind_Content } |
enum | SyncActionState { SyncActionState_init, SyncActionState_sent, SyncActionState_loose, SyncActionState_error, SyncActionState_done } |
Functions | |
int | SyncStartSliceEnum (struct SyncRootStruct *root) |
starts a slice enumeration for the root | |
int | SyncStartHeartbeat (struct SyncBaseStruct *base) |
starts a periodic wakeup that maintains state across all roots | |
int | SyncStartNodeFetch (struct SyncRootStruct *root, struct SyncHashCacheEntry *ce, struct SyncCompareData *comp) |
starts a remote fetch of the given node, based on the hash comp may be NULL if this is not for a compare | |
int | SyncStartContentFetch (struct SyncRootStruct *root, struct ccn_charbuf *name, struct SyncCompareData *comp) |
starts a remote fetch of the given name comp may be NULL if this is not for a compare | |
int | SyncAddName (struct SyncBaseStruct *base, struct ccn_charbuf *name, ccnr_accession item) |
Adds the given name to any applicable roots. | |
int | SyncHandleSlice (struct SyncBaseStruct *base, struct ccn_charbuf *name) |
Creates a new slice from a full name. | |
int | SyncRegisterInterests (struct SyncRootStruct *root) |
registers interests associated with the given root these include C1.S.RA (Root Advise) and C1.S.NF (Node Fetch) interests additional interests may be registered as the protocol evolves | |
int | SyncSendRootAdviseInterest (struct SyncRootStruct *root) |
send a root advise request for the given root only one at a time may be outstanding | |
int | SyncUpdateRoot (struct SyncRootStruct *root) |
updates the root with the current root->namesToAdd | |
int | SyncStartCompareAction (struct SyncRootStruct *root, struct ccn_charbuf *hashR) |
initiates a compare action with the given remote hash |
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file SyncActions.h.
enum SyncActionState |
SyncActionState_init | |
SyncActionState_sent | |
SyncActionState_loose | |
SyncActionState_error | |
SyncActionState_done |
Definition at line 39 of file SyncActions.h.
Definition at line 29 of file SyncActions.h.
int SyncAddName | ( | struct SyncBaseStruct * | base, | |
struct ccn_charbuf * | name, | |||
ccnr_accession | item | |||
) |
Adds the given name to any applicable roots.
Use item == 0 to ignore accession number.
Definition at line 2163 of file SyncActions.c.
Referenced by SyncNotifyContent(), and SyncStartContentFetch().
int SyncHandleSlice | ( | struct SyncBaseStruct * | base, | |
struct ccn_charbuf * | name | |||
) |
Creates a new slice from a full name.
The name must start with base->priv->sliceCmdPrefix.
Definition at line 2258 of file SyncActions.c.
Referenced by SyncNotifyContent().
int SyncRegisterInterests | ( | struct SyncRootStruct * | root | ) |
registers interests associated with the given root these include C1.S.RA (Root Advise) and C1.S.NF (Node Fetch) interests additional interests may be registered as the protocol evolves
Definition at line 2662 of file SyncActions.c.
Referenced by SyncAddRoot().
int SyncSendRootAdviseInterest | ( | struct SyncRootStruct * | root | ) |
send a root advise request for the given root only one at a time may be outstanding
Definition at line 2848 of file SyncActions.c.
Referenced by HeartbeatAction(), and UpdateAction().
int SyncStartCompareAction | ( | struct SyncRootStruct * | root, | |
struct ccn_charbuf * | hashR | |||
) |
initiates a compare action with the given remote hash
Definition at line 3455 of file SyncActions.c.
Referenced by HeartbeatAction().
int SyncStartContentFetch | ( | struct SyncRootStruct * | root, | |
struct ccn_charbuf * | name, | |||
struct SyncCompareData * | comp | |||
) |
starts a remote fetch of the given name comp may be NULL if this is not for a compare
Definition at line 2095 of file SyncActions.c.
Referenced by CompareAction().
int SyncStartHeartbeat | ( | struct SyncBaseStruct * | base | ) |
starts a periodic wakeup that maintains state across all roots
Definition at line 1788 of file SyncActions.c.
Referenced by SyncInit().
int SyncStartNodeFetch | ( | struct SyncRootStruct * | root, | |
struct SyncHashCacheEntry * | ce, | |||
struct SyncCompareData * | comp | |||
) |
starts a remote fetch of the given node, based on the hash comp may be NULL if this is not for a compare
Definition at line 2018 of file SyncActions.c.
Referenced by doComparison(), and doPreload().
int SyncStartSliceEnum | ( | struct SyncRootStruct * | root | ) |
starts a slice enumeration for the root
Definition at line 1578 of file SyncActions.c.
Referenced by HeartbeatAction(), and SyncNotifyContent().
int SyncUpdateRoot | ( | struct SyncRootStruct * | root | ) |
updates the root with the current root->namesToAdd
Definition at line 3411 of file SyncActions.c.
Referenced by HeartbeatAction(), and testReadBuilder().