Kamaelia.Internet.ConnectedSocketAdapter.ConnectedSocketAdapter
class ConnectedSocketAdapter(Axon.Component.component)
ConnectedSocketAdapter(socket) -> new CSA component wrapping specified socket
Component for communicating with a socket. Send to its "DataSend" inbox to
send data, and receive data from its "outbox" outbox.
"DataReady" inbox must be wired to something that will notify it when new
data has arrived at the socket.
Inboxes
- control : Shutdown on producerFinished message (incoming & outgoing data is flushed first)
- DataSend : Data for this CSA to send through the socket (Axon.Ipc.status message)
- Initialise : NOT USED
- DataReady : Notify this CSA that there is incoming data ready on the socket
Outboxes
- FactoryFeedback : Signals socketShutdown (this socket has closed)
- outbox : Data received from the socket
- signal : Signals shutdownCSA (this CSA is shutting down)
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.
|