Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2007, 09:34 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Implementing some broadcast udp protocol

Hi !

I need to implement udp protocol in Win Forms that send some request to the broadcast address from specific port to specific port and then change to be a client and receive multiple answers from the broadcast using the same ports but in the oposite direction.
My questions are:
1.Is the first connection should use blocking (synchronous) functions ?
2.Should I close this first socket,and then open another one on the same port in order to get the broadcast answers ?
3.In which way should I get the broadcast answers:a.using asynchronous function and events like BeginSend/EndSend etc or b.using threads ?
4.How do I get multiple answers on the same port in this case ?

I will be glad to get answers/code snippets.

Tnx
AliJ







Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing some broadcast udp protocol AliJ General .NET 0 February 26th, 2007 03:11 AM
Implementing some broadcast udp protocol AliJ C# 0 February 23rd, 2007 09:51 AM
UDP data tranmission? kiw J2EE 0 December 16th, 2004 12:05 AM
asynchronous UDP socket Roland Wrox Book Feedback 0 June 26th, 2003 10:10 PM
Windows Messaging\Network Broadcast xgbnow VB How-To 0 June 12th, 2003 08:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.