3 Replies - 3785 Views - Last Post: 06 December 2012 - 04:27 AM Rate Topic: -----

#1 trongsoft  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 18-May 10

How to send broadcast in vb.net

Posted 18 May 2010 - 04:10 PM

Dear All.

I have developed a chat application using wcf duplex, use for WAN network

In my list chatting, have max 1000 clients online currently.

Now i want to send a message to all at once. So i dont know how to do it, how to send broadcast ?

Anybody help me, please!
Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: How to send broadcast in vb.net

#2 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1031
  • View blog
  • Posts: 4,013
  • Joined: 02-July 08

Re: How to send broadcast in vb.net

Posted 18 May 2010 - 04:13 PM

Loop thru all the clients and send the message.
Was This Post Helpful? 0
  • +
  • -

#3 trongsoft  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 18-May 10

Re: How to send broadcast in vb.net

Posted 18 May 2010 - 05:24 PM

View Posthawkvalley1, on 18 May 2010 - 03:13 PM, said:

Loop thru all the clients and send the message.

Thanks !
oh, at that time. i do that but it is slow, very slow if you loop all 1000 clients

Any ideas!
Was This Post Helpful? 0
  • +
  • -

#4 kylepantall  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-December 12

Re: How to send broadcast in vb.net

Posted 06 December 2012 - 04:27 AM

Try using a background worker, use the event BackgroundWorker Async and to run the code use BackgroundWork.runworkerasync()

You can also add a progress bar which can be linked to the BackgroundWorker.ProgressChanged() event.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1