Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / October 2006

Tip: Looking for answers? Try searching our database.

UdpClient vs Socket

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 06 Oct 2006 00:47 GMT
Hi;

I've noticed a lot of the MS samples show using Socket rather than UdpClient
for UDP stuff. Is that the suggested approach?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

"Peter Huang" [MSFT] - 06 Oct 2006 03:22 GMT
Hi David,

Based on my experience, the Udpclient is just a wrap for Socket. So that we
did not need to handle many socket related operation. But in nature, the
UDPclient is using Socket for underlying communication.
In my view, I think the difference is udpclient is easy use and socket
class will have more control over the socket.
To choose Udpclient or socket is based on your scenario, if the job can be
done in udpclient, I think we can use the udpclient because you will find
that it will need less code than socket class.
TinyUDP - Simple UDP Client/Server Components for .NET
http://www.codeproject.com/vb/net/TinyUDP.asp

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 06 Oct 2006 05:17 GMT
Thanks - that's what I thought by the sample code went the other way. I'll
use UdpClient.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi David,
>
[quoted text clipped - 19 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.