- Minor fix: Set correct names in comments at top of file - New FileCore Class: - Writing data to output file - BufferCore: - Check for "EAGAIN" on write and retry write - FunctionCore: - Add new Output method that references LocalIO directly - SelectableCore: - New method SetAutomanage to specify auto re-open parameters - Re-open timer implemented to slow re-open events - Only call ProcessBuffer() if data received on socket - Force processing input data when no input marker set - Use new Output method to simplify code - Bug fix: Read correctly from buffer on multiple reads/writes on FD - Check for "EAGAIN" on write to FD and retry write
31 lines
692 B
C
31 lines
692 B
C
/*
|
|
* TimingCore.h
|
|
*
|
|
* Created on: 13 May 2016
|
|
* Author: wentzelc
|
|
*/
|
|
|
|
#ifndef REDACORE_TIMINGCORE_H_
|
|
#define REDACORE_TIMINGCORE_H_
|
|
|
|
// redA Libraries
|
|
/* none */
|
|
|
|
// Standard C/C++ Libraries
|
|
#include <sys/time.h>
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Manage as Interval
|
|
void SetInterval( timeval *Time, long MilliSeconds );
|
|
|
|
// Manage as Timer
|
|
void SetStartTime( timeval *StartTime );
|
|
void ClearStartTime( timeval * StartTime );
|
|
long TimePassed( timeval StartTime );
|
|
bool Timeout( timeval StartTime, long MilliSeconds );
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif /* REDACORE_TIMINGCORE_H_ */
|