Important update:
- Used new core protocol function to create command - Bug fix: use correct sequence: From, To, Command
This commit is contained in:
@@ -28,10 +28,7 @@ CWatchdogCore::CWatchdogCore( const char * WatchdogName, const int pInterval, CL
|
||||
{
|
||||
// Create protocol
|
||||
Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' );
|
||||
Protocol->NewCommandStr();
|
||||
Protocol->AppendParam( WatchdogName, strlen(WatchdogName) );
|
||||
Protocol->AppendParam( ProcessName, strlen(ProcessName) );
|
||||
Protocol->AppendParam( "ping", 4 );
|
||||
Protocol->CreateCommand( ProcessName, WatchdogName, "ping" );
|
||||
|
||||
// Start timer
|
||||
PingTimeout = 500;
|
||||
|
||||
Reference in New Issue
Block a user