Winsock ConnectEx function

(最后修改: • 本文约 54 字,阅读大致需要 1 分钟 Kernel

Today jianghong has pointed out that ConnectEx found in Windows Socket API has combined the connection and sending of the first block of data together within one system call. I think this is desirable for us too, as this can reduce unnecessary context switches.

FreeBSD has accept_filter(9) mechanism that does similiar thing for accept(2).