// Print the notice.airtcp
Sample_CallBack( iShell, WIMINET_NOTICE_AIRTCP );
// Print the report.client
Sample_CallBack( iShell, WIMINET_REPORT_CLIENT );
// Print the task.complete
Sample_CallBack( iShell, WIMINET_TASK_COMPLETE );
}
// *****************************************************************************
// Design Notes:
// -----------------------------------------------------------------------------
void Active_Poll_Task_Status( void )
{
unsigned char index;
unsigned char iShell;
// Poll every task status
for ( index = 0X00; index < MAX_SHELL_SIZE; index++ )
{
// Get the shell number
iShell = iStatic_XShell[index];
// Get the shell status
Active_Poll_Task_Status_X1( iShell );
}
}
// *****************************************************************************
// Design Notes:
// -----------------------------------------------------------------------------
int main( int argc, char* argv[] )
{
unsigned long dwChar;
// Open the shell
iStatic_XShell[0X00] = OpenWiMinetShell( "192.168.0.248",12580, 0X01 );
// Open the shell
iStatic_XShell[0X01] = OpenWiMinetShell( "192.168.0.108",12580, 0X01 );
// Validate the shell open interface
if ( !iStatic_XShell[0X00] || !iStatic_XShell[0X01] )
{
printf( "Open shell failed!rn" );
return 0X00;
}
// Set the task callback function for
//WiMinet_SetTask_CallBack( 0XFF, Sample_CallBack );
// Set the common file path
WiMinet_SetTask_WorkPath( 0XFF, "G:BMP" );
// The notice for user input
printf( "Please select '0'-'9' for file, 'q' or 'Q' to exit!rnrn" );
// The main thread service
while( 0X01 )
{
// Release the processor control
Sleep( 0X01 );
// Poll the task status
Active_Poll_Task_Status();
// Check the keyboard input
if ( _kbhit() )
{
// Get the input character
dwChar = _getche();
// Check if time to exit this process
if ( ( dwChar == 'q' ) || ( dwChar == 'Q' ) )
{
break;
}
// The user input key handler
UserInputKey_Handler( dwChar );
}
}
// Close all the shell
StopWiMinetShell( 0XFF );
// The function exit code
return 0X00;
}