Where is sockaddr_in in Windows RT?
问题 According to MSDN (VS2012 version), sockaddr_in is defined in winsock2.h . There are no exceptions stated (similar to what we see with Windows Phone and some API calls). Yet when I try to compile a file which uses sockaddr_in and includes winsock2.h , I get a compile error (below). Notice that I don't receive a winsock2.h not found error (or similar). Also note that the same code compiles on Windows Phone 8. What does one need to include for WinRT? cl /Fotmp32dll\bss_conn.obj -Iinc32