It seems the WinRT API is added to PCL:
Make WinRT API usable in Portable Class Libraries targeting Windows 8 and WP8
That’s a great suggestion. We’ve added this capability for the new versions of both platforms. So when you author a portable class libraries with the following targets (or any subset) you’ll have access to WinRT APIs as well:
- Windows 8.1
- Windows Phone 8.1
- Windows Phone Silverlight 8.1 For the first two platforms, you’re also able to produce Windows Runtime components (WinMD).
Immo Landwerth
Program Manager
.NET Framework Team
You need VS2013 Update 2 for this.
Here some more info about this update:
http://blogs.msdn.com/b/somasegar/archive/2014/04/02/visual-studio-2013-update-2-rc-universal-projects-for-windows-and-windows-phone.aspx
Sockets in WinRT is in the Windows.Networking.Sockets
namespace:
http://msdn.microsoft.com/en-us/library/windows/apps/br226960.aspx