From: todd r. <tod...@ya...> - 2004-12-08 21:57:59
|
The "Move Request Recieved" message comes from the MoveAdapter that is fired when the button is pushed. This sends a ticket to the server (you should get a message at the server as well, saying that the message arrived). The desired behavior is for the server to then broadcast the ticket back to the client(s), where it is recieved in the MoveReciever objects arrive method. I would expect to see the message "I'm seeing a ticket" on the client. Thanks again for helping me track this down. I'm completely at a loss. Todd --- Joerg 'Herkules' Plewe <pl...@ha...> wrote: > Hi Todd! > > > Hm, I just compiled and ran your code .... but I > actualy GET an answer from the server! > > Everything is added > Move Request Recieved > Move Request Recieved > Move Request Recieved > Move Request Recieved > Move Request Recieved > Move Request Recieved > Client was closed > Client has been halted > > So, what else could be wrong/different? > > - 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!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo |