What is the difference between using system.net and system.net.sockets?



What is the difference between using system.net and system.net.sockets?..

Answer / narendra

System.Net:The System.Net namespace provides a simple programming interface for many of the protocols used on networks today. The WebRequest and WebResponse classes form the basis of what are called pluggable protocols, an implementation of network services that enables you to develop applications that use Internet resources without worrying about the specific details of the individual protocols.Classes in the System.Net namespace can be used to develop Windows Store apps or desktop apps. When used in a Windows Store app, classes in the System.Net namespace are affected by network isolation feature, part of the application security model used by the Windows Developer Preview. The appropriate network capabilities must be enabled in the app manifest for a Windows Store app for the system to allow network access by a Windows Store app. For more information, see the Network Isolation for Windows Store Apps.

System.Net.Socket:The System.Net.Sockets namespace provides a managed implementation of the Windows Sockets (Winsock) interface for developers who need to tightly control access to the network.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

Which is the root namespace for fundamental types in .net framework?

0 Answers  


What is the use of the default route {resource}.axd/{*pathinfo} ?

0 Answers  


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

0 Answers  


What filters are executed in the end?

0 Answers  


How large is the .net framework 3.0? Does this change make the release larger?

0 Answers  






what is lazy loading in entity framework?

0 Answers   Microsoft,


How can I return string result from action in asp.net mvc?

0 Answers  


Explain test driven development (tdd) ?

0 Answers  


What is the difference between STA and MTA?

3 Answers  


What are the new enhancements done in default project template of asp.net mvc 4?

0 Answers  


Where The Inheritence is useful?How we decide the situation of inheritence

2 Answers  


How we can multiple submit buttons in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


Categories