Kamaelia.Internet.Selector.selectorComponent

class selectorComponent(Axon.AdaptiveCommsComponent.AdaptiveCommsComponent)

selectorComponent() -> new selectorComponent component

Use selectorComponent.getSelectorService(...) in preference as it returns an existing instance, or automatically creates a new one.

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.

__init__(self)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

checkForClosedSockets(self)

handleExceptionalSocket(self, sock)

Currently there is no support for exceptional sockets

handleNotify(self)

Handle requests to register/deregister (component,socket) pairs.

handleReadableSocket(self, sock)

Notifys corresponding component that its socket is ready for reading new data.

handleWriteableSocket(self, sock)

Notifys corresponding component that its socket is ready for writing new data.

main(self)

Main loop

wireInComponent(self, socketComponentPair)

Wires in the (component, socket) pair, so the component receives notifications of events on socket.

Checks their interfaces with validComponentInput().

Does not check if the component,socket pair has already been wired in.

wireOutComponent(self, socketComponentPair)

Unwires the specified (component, socket) pair, so it no longer receives notifications of events on the socket.


Feedback

Got a problem with the documentation? Something unclear, could be clearer? Want to help with improving? Constructive criticism, preferably in the form of suggested rewording is very welcome.

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


(C) 2006 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved, This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC.