Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
Available now!
Buy at Amazon US or
Buy at Amazon UK



Articles

» Windows API reference
» Webcam streaming in VB.NET
» Remoting with firewalls
» RSA from first principles
» Key & MouseLogger in .NET
» Networking Resource Kit for .NET
» Migrating VB6 Winsock to VB.NET
» Migrating C++ sockets to C#
» RFC Reference guide
» COM Reference guide
» WMI Reference guide
» SQL stored procedures
» TCP & UDP port reference
» NET Framework reference
» Ethernet Type codes
» MAC address assignments
» DLL entry point reference
» Boost SQL performance
» Free SMS UK
» Free SMS Ireland
» Free SMS South Africa
» Internet Explorer

Contact us

3.0 UDP Client & Server messaging in C# & VB.NET

UDP, or the User Datagram Protocol is a low-latency, high performance protocol which runs over IP. It is ideal for applications where performance is more important than quality or integrity. Therefore it is excellent for Internet Radio, but not good for secure file transfer applications.

This C# (and VB.NET) program can be used to send simple messages from computer to computer, using the high performance UDP protocol. To use this program, run the server program on one computer, note the IP address of this computer by typing the number written on-screen. Install the client on a separate computer, type in the server IP address, and a message to send in the box provided, and press send. You should see the message appear on the server computer.

(Source code availabile in the book Network Programming in .NET (Buy at Amazon UK) (Buy at Amazon US), Chapter 3, Example 1 & 2)

Page 2  Page 3  Page 4  Page 5  Page 6  Page 7  Page 8  Page 9  Page 10  Page 11  Page 12  Page 13 



Google

Copyright 2017 Infinite Loop Ltd.