List:Commits« Previous MessageNext Message »
From:stewart Date:March 17 2008 9:14am
Subject:[patch 0/1] A strict my_socket type to enforce use of portable socket routines
View as plain text  
Sockets on Linux/Unix are of type int. Sockets on Microsoft Windows
are of type SOCKET. Mixing and matching leads to tears and subtle
runtime bugs.

However, we can get the compiler to force use to do the right thing.
This patch does this.

(hopefully without introducing bugs... so please read)
-- 
Stewart Smith
Thread
[patch 0/1] A strict my_socket type to enforce use of portable socket routinesstewart17 Mar
  • [patch 1/1] struct my_socket: force compiler to ensure socket code portabilitystewart17 Mar