sockets - Where is sockaddr_in in Windows RT? -


according msdn (vs2012 version), sockaddr_in defined in winsock2.h. there no exceptions stated (similar see windows phone , api calls). yet when try compile file uses sockaddr_in , includes winsock2.h, compile error (below).

notice don't receive winsock2.h not found error (or similar). note same code compiles on windows phone 8.

what 1 need include winrt?

        cl /fotmp32dll\bss_conn.obj  -iinc32 -itmp32dll -dopenssl_threads  -w3 - gs0 -gf -gy -nologo -dopenssl_sysname_winrt -dwin32_lean_and_mean -dl_endian -d_ crt_secure_no_deprecate -i\usr\local\ssl\fips-2.0/include /nologo /d ndebug /d _ usrdll /d _windll /d winapi_family=winapi_partition_app /fi sdkddkver.h /fi wina pifamily.h -dopenssl_no_rc5 -dopenssl_no_md2 -dopenssl_no_krb5 -dopenssl_no_engi ne -dopenssl_no_hw -dopenssl_fips -dopenssl_no_jpake -dopenssl_no_static_engine /zi /fdtmp32dll/lib  -dopenssl_build_shlibcrypto -c .\crypto\bio\bss_conn.c bss_conn.c .\crypto\bio\bss_conn.c(95) : error c2079: 'them' uses undefined struct 'sockadd r_in' .\crypto\bio\bss_conn.c(207) : error c2224: left of '.sin_family' must have stru ct/union type .\crypto\bio\bss_conn.c(207) : error c2065: 'af_inet' : undeclared identifier .\crypto\bio\bss_conn.c(208) : error c2224: left of '.sin_port' must have struct /union type .\crypto\bio\bss_conn.c(208) : warning c4013: 'htons' undefined; assuming extern  returning int .\crypto\bio\bss_conn.c(214) : error c2224: left of '.sin_addr' must have struct /union type .\crypto\bio\bss_conn.c(214) : warning c4013: 'htonl' undefined; assuming extern  returning int .\crypto\bio\bss_conn.c(217) : warning c4013: 'socket' undefined; assuming exter n returning int .\crypto\bio\bss_conn.c(217) : error c2065: 'af_inet' : undeclared identifier .\crypto\bio\bss_conn.c(217) : error c2065: 'sock_stream' : undeclared identifie r .\crypto\bio\bss_conn.c(217) : error c2065: 'ipproto_tcp' : undeclared identifie r .\crypto\bio\bss_conn.c(218) : error c2065: 'invalid_socket' : undeclared identi fier .\crypto\bio\bss_conn.c(220) : warning c4013: 'wsagetlasterror' undefined; assum ing extern returning int .\crypto\bio\bss_conn.c(260) : warning c4013: 'connect' undefined; assuming exte rn returning int .\crypto\bio\bss_conn.c(366) : error c2065: 'invalid_socket' : undeclared identi fier .\crypto\bio\bss_conn.c(379) : error c2065: 'invalid_socket' : undeclared identi fier .\crypto\bio\bss_conn.c(383) : warning c4013: 'shutdown' undefined; assuming ext ern returning int .\crypto\bio\bss_conn.c(384) : warning c4013: 'closesocket' undefined; assuming extern returning int .\crypto\bio\bss_conn.c(385) : error c2065: 'invalid_socket' : undeclared identi fier .\crypto\bio\bss_conn.c(422) : warning c4013: 'wsasetlasterror' undefined; assum ing extern returning int .\crypto\bio\bss_conn.c(423) : warning c4013: 'recv' undefined; assuming extern returning int .\crypto\bio\bss_conn.c(447) : warning c4013: 'send' undefined; assuming extern returning int nmake : fatal error u1077: '"c:\program files (x86)\microsoft visual studio 11.0 \vc\bin\x86_arm\cl.exe"' : return code '0x2' stop. 

note of visual studio 2013 update 4, winsock available use in windows store apps. (this doesn't apply original question, i'm adding in case other people find question in future).


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -