Click here to Skip to main content
15,911,789 members
Home / Discussions / C#
   

C#

 
QuestionWebcam & Microphone Pin
Abu Syed Khan24-Feb-07 14:00
Abu Syed Khan24-Feb-07 14:00 
AnswerRe: Webcam & Microphone Pin
zafersavas24-Feb-07 20:50
zafersavas24-Feb-07 20:50 
QuestionRemoting Issue Pin
Tauseef A24-Feb-07 12:21
Tauseef A24-Feb-07 12:21 
AnswerRe: Remoting Issue Pin
S. Senthil Kumar25-Feb-07 6:17
S. Senthil Kumar25-Feb-07 6:17 
QuestionChanging Tab Width in TabControl Pin
royk12324-Feb-07 12:16
royk12324-Feb-07 12:16 
AnswerRe: Changing Tab Width in TabControl Pin
il_masacratore26-Feb-07 3:37
il_masacratore26-Feb-07 3:37 
QuestionUdpClient class question? (How to release the bound port) [modified] Pin
zafersavas24-Feb-07 11:59
zafersavas24-Feb-07 11:59 
AnswerRe: UdpClient class question? (How to release the bound port) Pin
Wayne Phipps25-Feb-07 5:54
Wayne Phipps25-Feb-07 5:54 
You haven't said why you don't want to use the overloaded constructor to instanciate the client and specify the port.

The problem is that in order to listen for incoming data, you use the UdpClient.Receive method.

This method blocks until data is received, and with UDP being a connectionless protocol, you can never guarantee when data will be recieved so your left with having to listen for any/all incoming data over a specific port.

One way to achieve this is to run a UdpClient that listens for incoming data on a seperate thread which frees up the main thread to do it's normal work.

A seperate UdpClient can then be instanciated in the main thread whenever you need to send data.

I created a test project some time ago which you can download from here:

http://www.box.net/public/frq1a08ozh

It requires v2.0 of the .Net Framework but the source code should help point you in the right direction even if you using v1.1


Hope this helps


Regards

Wayne Phipps
____________

Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog

QuestionReferencing Web User Control Pin
Expert Coming24-Feb-07 11:02
Expert Coming24-Feb-07 11:02 
AnswerRe: Referencing Web User Control Pin
Christian Graus24-Feb-07 11:10
protectorChristian Graus24-Feb-07 11:10 
GeneralRe: Referencing Web User Control Pin
Expert Coming24-Feb-07 11:35
Expert Coming24-Feb-07 11:35 
GeneralRe: Referencing Web User Control Pin
Christian Graus24-Feb-07 12:36
protectorChristian Graus24-Feb-07 12:36 
QuestionGeneral question about object reference in C# \ .NET Framework Pin
Yanshof24-Feb-07 10:08
Yanshof24-Feb-07 10:08 
AnswerRe: General question about object reference in C# \ .NET Framework Pin
Larantz24-Feb-07 10:49
Larantz24-Feb-07 10:49 
GeneralRe: General question about object reference in C# \ .NET Framework Pin
Guffa24-Feb-07 11:07
Guffa24-Feb-07 11:07 
AnswerRe: General question about object reference in C# \ .NET Framework Pin
Guffa24-Feb-07 10:57
Guffa24-Feb-07 10:57 
AnswerRe: General question about object reference in C# \ .NET Framework Pin
Christian Graus24-Feb-07 11:05
protectorChristian Graus24-Feb-07 11:05 
Questionaccessing control of one form from another form Pin
Saira Tanwir24-Feb-07 9:51
Saira Tanwir24-Feb-07 9:51 
AnswerRe: accessing control of one form from another form Pin
Larantz24-Feb-07 11:00
Larantz24-Feb-07 11:00 
GeneralRe: accessing control of one form from another form Pin
Saira Tanwir24-Feb-07 22:50
Saira Tanwir24-Feb-07 22:50 
AnswerRe: accessing control of one form from another form Pin
Christian Graus24-Feb-07 11:08
protectorChristian Graus24-Feb-07 11:08 
QuestionMove icon Pin
CodeItWell24-Feb-07 8:38
CodeItWell24-Feb-07 8:38 
AnswerRe: Move icon Pin
Luc Pattyn24-Feb-07 11:11
sitebuilderLuc Pattyn24-Feb-07 11:11 
QuestionIf value true then Button Next, Pin
dayavu24-Feb-07 8:22
dayavu24-Feb-07 8:22 
AnswerRe: If value true then Button Next, Pin
Larantz24-Feb-07 10:36
Larantz24-Feb-07 10:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.