Results 1 to 2 of 2
  1. #1
    bhanu is offline Member
    Join Date
    Oct 2007
    Posts
    7
    Rep Power
    0

    Default broadcast messaging

    Hi all
    I am bhanu lakshmi. I am doing a client server appliction in Java.
    My doubt is How can I broadcast a message to all users who logged in.
    Pls give some sample source codes to get clear.

    thanxs
    Bhanu.

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    10

    Default

    Your server will keep track of the ip of the connected users. Whenever you want to broadcast a message to them, your server will send a message to the client side. It will be more clear if you read Sun's tutorial:

    Lesson: All About Sockets (The Java™ Tutorials > Custom Networking)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •