Forum Discussion
Altera_Forum
Honored Contributor
13 years agoPorting linux based application on uCOS
Hello,
I am new to this forum and to uCos. I am trying to investigate if we can port our application on uCos II. Could some one please share their views/experience about uCos II. Our applciation currently works on Linux and it uses POSIX pthreads, Semaphores, Mutex, RAW Socket packet handling. Is it possible to use multiple threads in uCosII. Is there a API for raw packet handling some thing like pcap in linux. Kindly share your opinions on this issue. Cheers Tama2 Replies
- Altera_Forum
Honored Contributor
uCOS doesn't have a POSIX API, so you'll have to convert all your pthread, semaphores and mutex calls to the uCOS API.
As for raw sockets, AFAIK there is no API to access them. The Interniche TCP/IP stack is rather simple, and if you want raw sockets you'll probably have to go into the stack code and modify it yourself. - Altera_Forum
Honored Contributor
Thanks for the reply.