(无题)
Armstrong03's Blog · armstrong03 · 2003-06-17
2003-06-17
Network Programming in C#
Rajesh V. S. 11/12/2001, C# Corner
The .NET framework provides two namespaces, System.Net and System.Net.Sockets for network programming. The classes and methods of these namespaces help us to write programs, which can communicate across the network. The communication can be either connection oriented or connectionless. They can also be either stream oriented or data-gram based. The most widely used protocol TCP is used for stream-based communication and UDP is used for data-grams based applications.
The System.Net.Sockets.Socket is an important class from the System.Net.Sockets namespace. A Socket instance has a local and a remote end-point associated with it. The local end-point contains the connection information for the current socket instance.
There are some other helper classes like IPEndPoint, IPADdress, SocketException etc, which we can use for Network programming. The .NET framework supports both synchronous and asynchronous communication between the client and server. There are different methods supporting for these two types of communication. A synchronous method is operating in blocking mode, in which the method waits until the operation is complete before it returns. But an asynchronous method is operating in non-blocking mode, where it returns immediately, possibly before the operation has completed.
Read more:
Network Programming in C#-Part 1
, and
Network Programming in C#-Part 2
armstrong03
引用(Trackback0)
评论
发表评论
用户名:
Email:
主页:
最后更新
Ontology Development 101: A Guide to Creating Your First Ontology
RSS: The Next Killer App For Education
High Definition and Instructional TV: Could HDTV Be The Killer App For Education?
Network Programming in C#
Simple Sniffer in C# (with source code)
Web Services Architecture
Getting Started with XML Web Services in Visual Basic.NET and Visual C#
How ASP.NET Web Services Work
Armstrong03's Blog
原始快照:web.archive.org