August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)

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.

Methods defined here

Warning!

You should be using the inbox/outbox interface, not these methods (except construction). This documentation is designed as a roadmap as to their functionalilty for maintainers and new component developers.

__init__(self[, port])

handleNewCSA(self, data)

main(self)

stop(self)

Kamaelia.Internet.SingleServer.echo

class echo(Axon.Component.component)

Inboxes

Outboxes

Methods defined here

Warning!

You should be using the inbox/outbox interface, not these methods (except construction). This documentation is designed as a roadmap as to their functionalilty for maintainers and new component developers.

main(self)

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, 05 Jun 2009 at 03:01:38 UTC/GMT