#include <errno.h>
#include <string.h>
#include <semLib.h>
#include <sockLib.h>
#include <inetLib.h>
#include <sysLib.h>
#include <tickLib.h>
#include "BBC/BUG.h"
#include "BBC/FPA.h"
#include "BBC/FORK.h"
#include "BBC/RNG.h"
#include "BFU/BFA.h"
#include "BFU/BFO.h"
#include "BFU/BFU_fileDsc.h"
#include "CCSDS/CCSDS_bfem.h"
Data Structures | |
| struct | _BFO_biu |
| Defines the parameters which control writing a sampled stream of events to the BIU. More... | |
| struct | _BFO_biuDst |
| Defines an BIU destination control structure. More... | |
| struct | _BFO_dsk |
| Defines the parameters which control writing a disk file. More... | |
| struct | _BFO_msg |
| Defines the contents of a message passed between the FORK tasks. More... | |
| struct | _BFO_ocb |
| The Output Control Block. More... | |
| struct | _BFO_stats |
| Defines an IO statistics block. More... | |
| struct | _BFO_statsRec |
| Defines an IO statistics record. More... | |
Defines | |
| #define | BFO_K_BIU_MAX_PKT_SIZE 0x8000 |
| Limits the maximum UDP packet. | |
Typedefs | |
| typedef _BFO_msg | BFO_msg |
| Typedef for struct _BFO_msg. | |
| typedef _BFO_dsk | BFO_dsk |
| Typedef for struct _BFO_dsk. | |
| typedef _BFO_statsRec | BFO_statsRec |
| Typedef for struct _BFO_statsRec. More... | |
| typedef _BFO_stats | BFO_stats |
| Typedef for struct _BFO_stats. More... | |
| typedef _BFO_biuDst | BFO_biuDst |
| Typedef for struct _BFO_biuDst. More... | |
| typedef _BFO_biu | BFO_biu |
| Typedef for struct _BFO_biu. | |
Functions | |
| FORK_cb_status | bfoDefault (BFO_ocb *bfo, BFO_msg *msg) |
| Default Fork task handler. More... | |
| FORK_cb_status | bfoFlush (BFO_ocb *bfo, BFO_msg *msg) |
| Handles a FLUSH request. More... | |
| FORK_cb_status | bfoSynch (BFO_ocb *bfo, BFO_msg *msg) |
| Handles a SYNCH request. More... | |
| FORK_cb_status | bfoWrite (BFO_ocb *bfo, BFO_msg *msg) |
| Handles a WRITE request. More... | |
| void | dskInit (BFO_dsk *dsk, BFO_dskWriteRtn wrt, RNG_rcb *rcb) |
| Initializes the disk control structure. More... | |
| int | dskWrite (BFO_dsk *dsk, const char *ptr, int nbytes) |
| Controls writing data to disk. More... | |
| void | biuInit (BFO_biu *biu) |
| Initializes the BFO BIU output control structure. More... | |
| int | biuWrite (BFO_biu *biu, BFU_fileDsc *fileDsc) |
| Evaluates the number of bytes/events that the BIU can absorb and sends them. More... | |
| int | biuWriteRecs (BFO_biuDst *dst, int nrecs, BFU_recDsc *recs, int inc, int credit) |
| Evaluates the number of bytes/events that the BIU can absorb and sends them. More... | |
| int | biuCreditCalc (const BFO_biu *biu, unsigned int curtime) |
| Evaluates the number of bytes that the BIU can absorb. More... | |
| int | biuIncCalc (const BFU_fileDsc *dsc, int credit) |
| Makes a guess how many events can be sent. More... | |
| BFO_ocb * | BFO_get (void) |
| Returns a pointer to the BFO output control block. More... | |
| int | BFO_ocb_sizeof (void) |
| Returns the size of the BFO output control block. More... | |
| int | BFO_msg_sizeof (void) |
| Returns the size of a BFO message. More... | |
| int | BFO_ocb_init (BFO_ocb *bfo, BFO_dskWriteRtn wrt, void *msgs, int msgs_size, struct _BFA_acb *acb) |
| Initializes the Output Control Block. More... | |
| int | BFO_biuDisable (BFO_ocb *bfo) |
| Disables writing to the BIU sampling stream. More... | |
| int | BFO_biuDstSet (BFO_ocb *bfo, unsigned int ip, unsigned short port) |
| Sets the destination IP address. More... | |
| int | BFO_biuEnable (BFO_ocb *bfo) |
| Enables writing to the BIU sampling stream. More... | |
| void | BFO_biuSamplingSet (BFO_ocb *bfo, int sampleRate, int limit) |
| Sets the parameters controlling the BIU sampling factors. More... | |
| void | BFO_dskBlkSizeSet (BFO_ocb *bfo, int blkSize) |
| Sets the disk blocking size. More... | |
| int | BFO_dskDisable (BFO_ocb *bfo) |
| Disables writing to the disk. More... | |
| int | BFO_dskEnable (BFO_ocb *bfo) |
| Enables writing to the disk. More... | |
| void | BFO_dskFileSet (BFO_ocb *bfo, int fd) |
| Simply routine to set the current file descriptor. More... | |
| int | BFO_dskFileGet (BFO_ocb *bfo) |
| Simply query routine to return the current file descriptor. More... | |
| int | BFO_write (BFO_ocb *bfo, struct _BFU_fileDsc *fileDsc) |
| Ques a message to write the specified events to the output streams. More... | |
| int | BFO_flush (BFO_ocb *bfo) |
| Ques a message to flush data from all internal BFO buffers. More... | |
| int | BFO_synch (BFO_ocb *bfo) |
| Attempts to ensure that all previous requests have been acted upon. More... | |
Variables | |
| BFO_ocb * | Bfo_Ocb = NULL |
| Internal static for the BFO context block. More... | |
|
|
Typedef for struct _BFO_biuDst.
|
|
|
Typedef for struct _BFO_stats.
An IO statistics block consists of IO statistics records for 3 cateogories of events. |
|
|
Typedef for struct _BFO_statsRec.
An IO statistics record keeps track of the number on IOs and the total size of the IOs. |
|
|
Disables writing to the BIU sampling stream.
|
|
||||||||||||||||
|
Sets the destination IP address.
|
|
|
Enables writing to the BIU sampling stream.
|
|
||||||||||||||||
|
Sets the parameters controlling the BIU sampling factors.
|
|
||||||||||||
|
Sets the disk blocking size.
|
|
|
Disables writing to the disk.
|
|
|
Enables writing to the disk.
|
|
|
Simply query routine to return the current file descriptor.
|
|
||||||||||||
|
Simply routine to set the current file descriptor.
|
|
|
Ques a message to flush data from all internal BFO buffers.
|
|
|
Returns a pointer to the BFO output control block.
|
|
|
Returns the size of a BFO message.
|
|
||||||||||||||||||||||||
|
Initializes the Output Control Block.
|
|
|
Returns the size of the BFO output control block.
|
|
|
Attempts to ensure that all previous requests have been acted upon.
|
|
||||||||||||
|
Ques a message to write the specified events to the output streams.
|
|
||||||||||||
|
Default Fork task handler.
|
|
||||||||||||
|
Handles a FLUSH request.
|
|
||||||||||||
|
Handles a SYNCH request.
|
|
||||||||||||
|
Handles a WRITE request.
|
|
||||||||||||
|
Evaluates the number of bytes that the BIU can absorb.
|
|
||||||||||||
|
Makes a guess how many events can be sent.
|
|
|
Initializes the BFO BIU output control structure.
|
|
||||||||||||
|
Evaluates the number of bytes/events that the BIU can absorb and sends them.
|
|
||||||||||||||||||||||||
|
Evaluates the number of bytes/events that the BIU can absorb and sends them.
|
|
||||||||||||||||
|
Initializes the disk control structure.
|
|
||||||||||||||||
|
Controls writing data to disk.
|
|
|
Internal static for the BFO context block.
This will be NULL until it has been initialized by BFO_ocb_init () |
1.2.14 written by Dimitri van Heesch,
© 1997-2002