Kamaelia

Nuts & Bolts | Components | Tools | Cookbook | Systems
wiki:( guest738308, Dev Console, Index, Recent, Edit )


Home, News
Dev Console

How, Why
Project Blog
Summer of Code

Documentation
Download
SVN (web)
Sourceforge page

Project Admin
License

Contact Us

  Page Tags

No tags are defined for this page yet - how would you classify/think of this page? Add your notes below!

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!

__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.


Your tags for this page: If you had set UserPreferences (name & email) and validated them (simple single click in your email), you would be able to define personal tags

Versions: current , 1


(C) 2005 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.