Author Topic: YAGO!!! Question 'bout java.iago.nonblocking  (Read 2811 times)

0 Members and 1 Guest are viewing this topic.

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
YAGO!!! Question 'bout java.iago.nonblocking
« on: December 07, 2006, 05:16:25 pm »
It seems, from your code, that you intend for there to be a ClientCallback object associated with every existing socket. So if there are n connections then there are n sockets and n callbacks. My question is, did you intend for there to be a 1:1 mapping of sockets to callbacks or did you intend for all sockets' messages to be forwarded to a single callback, which will distinguish the source by an identifier?

In the past I've fudged your code to make it so that there is a single callback to which all sockets forward their messages. Now that I'm working on a new project that will involve your package (once again, thanks yago), do you  think it would be wise to make a ClientCallback object for every connection? Or would that be too heavy on the system?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: YAGO!!! Question 'bout java.iago.nonblocking
« Reply #1 on: December 07, 2006, 06:17:27 pm »
You'll have to forgive me for this response, since it's been awhile since I wrote that, but, huh?