Kamaelia docs : Kamaelia.Internet.SingleServer

This is a simpler server than the SimpleServer component. Specifically it only allows a single connection to occur at a time. Any data received on that connection is sent to the component's outbox, and any data received on its inbox is sent to the connection. When a connection closes, it sends a producerFinished signal.

TODO: If there is already a connection, then any new connections are shutdown. It would be better if they weren't accepted in the first place, but that requires changes to TCPServer.


Kamaelia.Internet.SingleServer.SingleServer

class SingleServer(Axon.Component.component)

Inboxes

  • control : Default inbox, not actually listened to
  • inbox : Data received on this inbox is sent to the first client who connects
  • _oobinfo : We receive notification of connection on this inbox

Outboxes

  • outbox : Any data received from the first connection accepted is sent to this outbox
  • signal : When the client disconnects a producerFinished message is sent here
  • _CSA_signal : Outbox for sending messages to the CSA. Currently unused.

Kamaelia.Internet.SingleServer.echo

class echo(Axon.Component.component)

Methods defined here

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: