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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can call a javascript function on the change of a dropdown list in mvc?

786


Explain the types of Scaffoldings.

832


What is viewbag title?

688


What is entitytypes? : Entity framework

783


Explain the role of assembly in the .net framework.

771


What is action methods in web api?

788


What are the 3 main components of an asp.net mvc application?

744


Can you explain renderbody and renderpage in asp.net mvc?

755


Does windows 10 need .net framework?

718


What is difference between razor and web form engine?

748


How to answer for project questions..?

2419


What is Separation of Concerns in ASP.NET ASP.Net MVC?

802


explain what does .edmx file contains?

829


What is a model in programming?

745


what is use of entitydatasource control?

825