i want to listen 2port simultaneously. can you give any solution for this..?
i tried example rtcs project code but i cant listen two port at the same time.after one client connected only it was processing another one. how to listen 2port or how to initialize 2port at a same time
err = select(2,&rfds,NULL,0);
test_tid = _task_create(0, TEST_TASK_INDEX, (uint32_t) &task_p);
if (tx_tid == MQX_NULL_TASK_ID)
fprintf(stderr, "Fatal Error 0x%X: Unable to create transmit task.", _task_get_error());
actually "select(2,&rfds,NULL,0);" in this function was waiting upto incoming connection.
after that only its creating TEST_TASK_INDEX, so how to avoid that problem. how to create another task without help of current running task. i am new for RTOS now only i am learning, i am waiting for your reply..