By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,112 Members | 1,642 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,112 IT Pros & Developers. It's quick & easy.

Control, UDP and IE

P: n/a
Hi all,
I have written a control in c# which heard an UDP port on a network
broadcast address.
In the other hand, a server send periodically (every 500ms) some messages to
this broadcast address/port.

(1) if the control runs on a winform, there is no problem. It displays the
messages immediatly.
(2) if the control is placed on an aspx page, when the IE client show it,
the control is loaded but it does not receive (?!?) any message before 100
seconds !

What's the problem ? Does someone have an idea ?

If you want to try that, ask me for the project sources.

Thank you for your help.

Regards,

Thierry
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Thierry,
We might be confusing Client side vs Server Side here. Your control on an
aspx page that is processed and sent to the browser is now just HTML in the
browser. There is no further connection with the server -unless it's a
Windows Forms Rich Client type of userControl. (I'm guessing from your post
that's what it is).
So in essence you are saying that you have written your UserControl in such
a way that it maintains a constant UDP socket listening connection to the
broadcast address? Does it receive messages at all, or just doesn't receive
any messages UNTIL 100 seconds?
--Peter

"Thierry Lefevre" <to**@wanadoo.fr> wrote in message
news:u$*****************@tk2msftngp13.phx.gbl...
Hi all,
I have written a control in c# which heard an UDP port on a network
broadcast address.
In the other hand, a server send periodically (every 500ms) some messages to this broadcast address/port.

(1) if the control runs on a winform, there is no problem. It displays the
messages immediatly.
(2) if the control is placed on an aspx page, when the IE client show it,
the control is loaded but it does not receive (?!?) any message before 100
seconds !

What's the problem ? Does someone have an idea ?

If you want to try that, ask me for the project sources.

Thank you for your help.

Regards,

Thierry

Nov 15 '05 #2

P: n/a
Thierry,
We might be confusing Client side vs Server Side here. Your control on an
aspx page that is processed and sent to the browser is now just HTML in the
browser. There is no further connection with the server -unless it's a
Windows Forms Rich Client type of userControl. (I'm guessing from your post
that's what it is).
So in essence you are saying that you have written your UserControl in such
a way that it maintains a constant UDP socket listening connection to the
broadcast address? Does it receive messages at all, or just doesn't receive
any messages UNTIL 100 seconds?
--Peter

"Thierry Lefevre" <to**@wanadoo.fr> wrote in message
news:u$*****************@tk2msftngp13.phx.gbl...
Hi all,
I have written a control in c# which heard an UDP port on a network
broadcast address.
In the other hand, a server send periodically (every 500ms) some messages to this broadcast address/port.

(1) if the control runs on a winform, there is no problem. It displays the
messages immediatly.
(2) if the control is placed on an aspx page, when the IE client show it,
the control is loaded but it does not receive (?!?) any message before 100
seconds !

What's the problem ? Does someone have an idea ?

If you want to try that, ask me for the project sources.

Thank you for your help.

Regards,

Thierry

Nov 15 '05 #3

P: n/a
Hi Peter,

Yes, my control maintains a constant UDP socket listening connection and
doesn't receive any messages until 100 seconds when it is processed in a
html page by IE.
If you want to try this test, I can send you my entire project (small). It's
written in c#.
Thank you.
Thierry

"Peter Bromberg [C# MVP]" <pb*******@yahoo.com> a écrit dans le message de
news:OC****************@TK2MSFTNGP12.phx.gbl...
Thierry,
We might be confusing Client side vs Server Side here. Your control on an
aspx page that is processed and sent to the browser is now just HTML in the browser. There is no further connection with the server -unless it's a
Windows Forms Rich Client type of userControl. (I'm guessing from your post that's what it is).
So in essence you are saying that you have written your UserControl in such a way that it maintains a constant UDP socket listening connection to the
broadcast address? Does it receive messages at all, or just doesn't receive any messages UNTIL 100 seconds?
--Peter

"Thierry Lefevre" <to**@wanadoo.fr> wrote in message
news:u$*****************@tk2msftngp13.phx.gbl...
Hi all,
I have written a control in c# which heard an UDP port on a network
broadcast address.
In the other hand, a server send periodically (every 500ms) some messages
to
this broadcast address/port.

(1) if the control runs on a winform, there is no problem. It displays

the messages immediatly.
(2) if the control is placed on an aspx page, when the IE client show it, the control is loaded but it does not receive (?!?) any message before 100 seconds !

What's the problem ? Does someone have an idea ?

If you want to try that, ask me for the project sources.

Thank you for your help.

Regards,

Thierry


Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.