Major Update:
- 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
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Select.h
|
||||
* SelectableCore.h
|
||||
*
|
||||
* Created on: 13 May 2016
|
||||
* Author: wentzelc
|
||||
@@ -91,6 +91,10 @@ struct SHandle {
|
||||
timeval InStart;
|
||||
long InTimeout; // millisecs
|
||||
|
||||
// Reopen Timer
|
||||
timeval ReopenStart;
|
||||
long ReopenTimeout; // millisecs
|
||||
|
||||
// List / Tree
|
||||
TLocalIO * LocalIO;
|
||||
THandle * Parent;
|
||||
@@ -207,7 +211,8 @@ public:
|
||||
}
|
||||
|
||||
// Configuration
|
||||
THandle * CreateHandle( const char * HandleName, bool CreateIO, bool AutoManage );
|
||||
THandle * CreateHandle( const char * HandleName, bool CreateIO );
|
||||
bool SetAutoManage( THandle * Handle, bool AutoManage, int ReopenTime = 0 );
|
||||
bool SetBuffers( THandle * Handle, int InBufSize, int OutBufSize, int InTimeout, const char * InMarker, int InMarkerLen );
|
||||
bool SerialConfig( THandle * Handle, int Baud, short DataBits, short StopBits, short Parity, short FlowCtrl, int Wait );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user