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
Do you know about the new features in ASP.Net MVC 4 ?
How we can invoke child actions in ASP.Net MVC?
Explain the request flow in asp.net mvc framework?
Which is the default http method for an action method?
Is .net core replacing .net framework?
What is Attribute Routing in ASP.Net MVC?
Can we add constraints to the route? If yes, explain how we can do it?
Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )
What is the difference between old ADO.NET and Entity framework coding techniques?
In razor syntax, what is the escape sequence character for @ symbol?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What is Differnce between html.action and ajax.action?
Explain the methods used to render the views in ASP.Net MVC?
Why is entity framework used?
Difference between ASP.NET MVC and ASP.NET WebForms?