From: todd r. <tod...@ya...> - 2004-12-07 00:03:39
|
Removing the flush in TicketBroadcaster didn't do it. I extended NetStation in SimpleClient and overrode handleIncoming and it never gets called. It's almost as if the broadcast method in SimpleServer doesn't know about the line between itself and SimpleClient. I'm sure I'm missing something basic, but I'm not seeing it. Thanks Joerg! Todd --- Joerg 'Herkules' Plewe <pl...@ha...> wrote: > Hi! > > From a first glance, everything looks OK. > Just the flush() within the TicketBroadcaster looks > like something I never tried. This is somehow > 'sending while receiving' and I'm not sure what > happens there. The actual 'flush()' should be > performed by the ServerBusStationDriver() you > correctly installed. > Have you tried without that extra flush() in > TicketBroadcaster? > > It's late here and I need some sleep ....hopefully I > can take a look at it tomorrow. I'm sure we can > fix that! > > Please note that HQ is not in a 'stable' state, so > if anything happens that seems to be unusual, it > is very likely to be a HQ bug. Let me know then! > > Have fun, > > - J > > > ----- Original Message ----- > From: "todd runstein" <tod...@ya...> > To: <drt...@li...> > Sent: Monday, December 06, 2004 8:16 PM > Subject: [Drts-devel] Help with NetStation broadcast > method > > > > I'm trying to understand how to use the > Headquarter > > objects and have written a small sample > application to > > test my understanding. Obviously, my > understanding is > > lacking. > > > > I've written a server (NetStation constructed with > a > > port) and a client (NetStation without a port). I > > create a line between the client and the server > and > > then pass BusTickets over the line. When a client > > creates a line to the server, or begins to close, > I > > have the client send a ticket with a specific > identity > > (a NamedIdentity of "simple.connect"). The server > > sees this message and is able to respond, so I'm > at > > least on the right track. > > > > The client starts up a GUI that includes a button. > > The action of the button causes a ticket to be > created > > and sent to the server. This ticket has a > different > > identity type (a NamedIdentity of "simple.move"), > and > > is also seen by the server. > > > > The intent is for the BusTicketListener at the > server > > simply to send the ticket back out to it's lines > using > > the broadcast and flush methods. I have a > > BusTicketListener on the client that is supposed > to > > pick up messages of identity simple.move. The > client > > is not receiving these tickets. > > > > I've called the add method on the clients > NetStation, > > passing the NamedIdentity and my BusTicketListener > > object. What else do I need to do to get the > > broadcast message to be sent and recieved at the > > client? > > > > I have attached the sample app that I'm using. If > > anyone has any ideas on what I've done wrong, I'd > > appreciate some help. > > > > Thanks > > > > Todd > > > > ===== > > The only "dumb question" is the one you were too > afraid to ask. > > ________________________________________ > > Check out RouteRuler - Free software for runners, > cyclists, walkers, etc. > > http://routeruler.sourceforge.net > > ________________________________________ > > Get a handle on your data with "pocOLAP", the > "little" OLAP project > > http://pocolap.sourceforge.net > > ________________________________________ > > > > > > > > __________________________________ > > Do you Yahoo!? > > Read only the mail you want - Yahoo! Mail > SpamGuard. > > http://promotions.yahoo.com/new_mail > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Drts-devel mailing list > Drt...@li... > https://lists.sourceforge.net/lists/listinfo/drts-devel > ===== The only "dumb question" is the one you were too afraid to ask. ________________________________________ Check out RouteRuler - Free software for runners, cyclists, walkers, etc. http://routeruler.sourceforge.net ________________________________________ Get a handle on your data with "pocOLAP", the "little" OLAP project http://pocolap.sourceforge.net ________________________________________ __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 |