Results 1 to 2 of 2
  1. #1
    carek is offline Member
    Join Date
    Dec 2009
    Rep Power

    Default NIO Server: listening on client's side socket

    Hi. I write out the java nio server, which is a kind of auction house. My task is to implement this with an infinite pool of items using the following definitions:

    - auctioners can join the auction at any time
    - The informations about the item and it's current price is send to newly come auctioners
    - If the price has changed course this information is sent to all auctioners
    - At the end of the auction information about the winner is mailed to all users, who participated in the auction

    And the question - is there some kind of "socket listener" that would let the client know if something appeared on the socket? Do you have ideas on how we could implement it well? (Of course, always remains an infinite loop and check if there is something, but it is inelegant and inefficient)

    thanks for any suggestions,

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    The client should read from the socket, which blocks until input arrives.

Similar Threads

  1. updating server side file using java bean
    By tskarthic in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-30-2009, 02:53 PM
  2. How to open a file located in server from client side
    By Malathi in forum Web Frameworks
    Replies: 4
    Last Post: 04-20-2009, 09:10 PM
  3. Need to change cursor to hourglass at server side
    By bgupta in forum Java Servlet
    Replies: 0
    Last Post: 02-16-2009, 07:35 AM
  4. Java server listening on given interface?
    By Joe2003 in forum Advanced Java
    Replies: 2
    Last Post: 01-26-2009, 05:14 PM
  5. Replies: 2
    Last Post: 10-05-2008, 06:13 PM

Posting Permissions

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