jameswalmsley / bitthunder

BitThunder - Reliable, real time, portable, scalable, embedded operating system, RTOS.
http://bitthunder.org
Other
168 stars 48 forks source link

[NET] Modify internal API to use bt namespace, with a header for kernel mode linking. #19

Open jameswalmsley opened 10 years ago

jameswalmsley commented 10 years ago

os/src/net/bt_sockets.c does not follow coding standards and exposes a POSIX api directly. This can be fixed by modifying the functions to follow the following conventions:

  1. btnet*
  2. Use process file-descriptors if available.
  3. Cast HANDLE type to int when process file-descriptors not available.