/usr/include/dtpc.h is in libion-dev 3.2.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | /*
dtpc.h: Definitions supporting applications built on the
implementation of the Delay Tolerant Payload Conditioning
in the ION (Interplanetary Overlay Network) stack.
Authors: Giorgos Papastergiou, SPICE
Ioannis Alexiadis, SPICE
Copyright (c) 2011, Space Internetworking Center,
Democritus University of Thrace. ALL RIGHTS RESERVED.
*/
#include "bp.h"
#define DTPC_POLL (0) /* Return immediately. */
#define DTPC_NONBLOCKING (0) /* Return immediately. */
#define DTPC_BLOCKING (-1) /* Wait forever. */
typedef struct
{
Object payload;
Sdnv length;
Object topicElt; /* Ref. to Topic, not used */
} PayloadRecord;
typedef int (*DtpcElisionFn) (Object recordsList);
typedef struct dtpcsap_st *DtpcSAP;
typedef enum
{
PayloadPresent = 1,
ReceptionTimedOut,
ReceptionInterrupted,
DtpcServiceStopped
} DtpcIndResult;
typedef struct
{
DtpcIndResult result;
char *srcEid;
unsigned int length;
Object adu; /* A zero-copy object */
} DtpcDelivery;
/* * * DTPC initilization * * * */
extern int dtpc_attach();
extern int dtpc_entity_is_started();
extern void dtpc_detach();
/* * * DTPC local services * * * */
extern int dtpc_open(unsigned int topicID,
DtpcElisionFn elisionFn,
DtpcSAP *dtpcsapPtr);
extern int dtpc_send(int profileID,
DtpcSAP sap,
char *dstEid,
unsigned int maxRtx,
unsigned int aggrSizeLimit,
unsigned int aggrTimeLimit,
int lifespan,
BpExtendedCOS *extendedCOS,
unsigned char srrFlags,
BpCustodySwitch custodySwitch,
char *reportToEid,
int classOfService,
Object item,
unsigned int length);
extern int dtpc_receive(DtpcSAP sap,
DtpcDelivery *dlv,
int timeoutSeconds);
extern void dtpc_interrupt(DtpcSAP sap);
extern void dtpc_release_delivery(DtpcDelivery *dlvBuffer);
extern void dtpc_close(DtpcSAP sap);
|