Answered by:
Portable Class Libraries / Sockets

Question
-
Hello together!
I'am developing a Windows Phone 7 networkgame at the moment. I use a Windows Form (Framework 4.0) as a server.
I found http://msdn.microsoft.com/en-us/library/gg597391.aspx the Portable Class Library to make one networkengine for WP7 and Windows.
But this Library doesn't support Sockets. But why? Since Mango have been released on the WP7 Sockets were also supported.How could i solve this problem?
Best Regards
ThomasFriday, February 24, 2012 8:32 AM
Answers
-
If you mean Socket Class, I am afraid it is in System.dll. And as far as I know, the core assemblies (mscorlib.dll, System.dll, System.Core.dll, and System.Xml.dll) are supported on all platforms in PCL.
Feature
Assemblies
.NET Framework 4
Silverlight
Windows Phone 7
Xbox 360
Core
mscorlib.dll, System.dll, System.Core.dll, System.Xml.dll
Yes
Yes
Yes
Yes
Managed Extensibility Framework (MEF)
System.ComponentModel.Composition.dll
Yes
Yes
No
No
Network Class Library (NCL)
System.Net.dll
Yes
Yes
Yes
No
Serialization
System.Runtime.Serialization.dll
Yes
Yes
Yes
No
Windows Communication Foundation (WCF)
System.ServiceModel.dll
Yes
Yes
Yes
No
XML Serialization
System.Xml.Serialization.dll
Yes
Yes
Yes
No
View Model Support
System.Windows.dll (from Silverlight)
No
Yes
Yes
No
Paul Zhou [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by Lie You Friday, March 9, 2012 8:17 AM
Tuesday, February 28, 2012 9:16 AM
All replies
-
Hi,
I am not 100% sure, if I understood you right:
- Regarding the link you gave, the Network Class Library (NCL) supports all platforms except xbox360. I think sockets are inside there so I would expect that they are available for WP7.
- The Network ClassLibrary also has its own forum at: http://social.msdn.microsoft.com/Forums/en-US/ncl/threads - maybe you want to ask the people in there if you have problems with it.With kind regards,
Konrad
Friday, February 24, 2012 9:59 AM -
I decompiled the System.Net.dll and that are all Classes
http://ct-projekte.square7.ch/screenshots/Classes.PNGFriday, February 24, 2012 6:26 PM -
If you mean Socket Class, I am afraid it is in System.dll. And as far as I know, the core assemblies (mscorlib.dll, System.dll, System.Core.dll, and System.Xml.dll) are supported on all platforms in PCL.
Feature
Assemblies
.NET Framework 4
Silverlight
Windows Phone 7
Xbox 360
Core
mscorlib.dll, System.dll, System.Core.dll, System.Xml.dll
Yes
Yes
Yes
Yes
Managed Extensibility Framework (MEF)
System.ComponentModel.Composition.dll
Yes
Yes
No
No
Network Class Library (NCL)
System.Net.dll
Yes
Yes
Yes
No
Serialization
System.Runtime.Serialization.dll
Yes
Yes
Yes
No
Windows Communication Foundation (WCF)
System.ServiceModel.dll
Yes
Yes
Yes
No
XML Serialization
System.Xml.Serialization.dll
Yes
Yes
Yes
No
View Model Support
System.Windows.dll (from Silverlight)
No
Yes
Yes
No
Paul Zhou [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by Lie You Friday, March 9, 2012 8:17 AM
Tuesday, February 28, 2012 9:16 AM