![]() |
Max OS 0.3
|
Passes read events on to the handlers. More...
#include <inputStream.h>
Public Member Functions | |
| InputStreamSocket () | |
| Creates a new InputStreamSocket. | |
| InputStreamSocket (InputStreamEventHandler< Type > *) | |
| Creates a new InputStreamSocket and connects it to the handler. | |
| ~InputStreamSocket () | |
| Destroys the InputStreamSocket. | |
| void | on_stream_read (Type) override |
| Called when data is read from a stream. Passes the event on to the internetProtocolHandlers. | |
Public Member Functions inherited from MaxOS::common::InputStreamProcessor< Type, Type > | |
| InputStreamProcessor () | |
| Creates a new InputStreamProcessor. | |
| InputStreamProcessor (InputStreamEventHandler< Type > *generic_stream_event_handler) | |
| Creates a new InputStreamProcessor. | |
| ~InputStreamProcessor () | |
| Destroys the InputStreamProcessor. | |
| void | on_end_of_stream (GenericInputStream< Type > *stream) override |
| Called when a stream has finished. Passes the event on to the handlers and then removes the stream from the array of streams. | |
Public Member Functions inherited from MaxOS::common::InputStreamEventHandler< Type > | |
| InputStreamEventHandler () | |
| _______________________________________________TEMPLATES_________________________________________________________________/// | |
| ~InputStreamEventHandler () | |
| Destroys the InputStreamProcessor and disconnects it from all streams. | |
Public Member Functions inherited from MaxOS::common::GenericInputStream< Type > | |
| GenericInputStream () | |
| Creates a new GenericInputStream. | |
| GenericInputStream (InputStreamEventHandler< Type > *) | |
| Creates a new GenericInputStream and connects it to the handler. | |
| ~GenericInputStream () | |
| Destroys the GenericInputStream and disconnects all handlers. | |
| void | connect_input_stream_event_handler (InputStreamEventHandler< Type > *) |
| Adds a inputStreamEventHandler to the list of internetProtocolHandlers. | |
| void | disconnect_input_stream_event_handler (InputStreamEventHandler< Type > *) |
| Removes a handler from the list of handlers. | |
Additional Inherited Members | |
Protected Attributes inherited from MaxOS::common::InputStreamEventHandler< Type > | |
| common::Vector< GenericInputStream< Type > * > | m_generic_input_streams |
| List of streams being observed by this handler. | |
Protected Attributes inherited from MaxOS::common::GenericInputStream< Type > | |
| common::Vector< InputStreamEventHandler< Type > * > | m_input_stream_event_handlers |
| List of streams being observed by this handler. | |
Passes read events on to the handlers.
| Type | The type of data the stream is handling |
Definition at line 65 of file inputStream.h.
|
default |
Creates a new InputStreamSocket.
| Type | The type of data the stream is handling |
|
explicit |
Creates a new InputStreamSocket and connects it to the handler.
| Type | The type of data the stream is handling (and the sockets processor type) |
| processor_handler | The handler to pass to InputStreamProcessor |
Definition at line 255 of file inputStream.h.
|
default |
Destroys the InputStreamSocket.
| Type | The type of data the stream is handling |
|
overridevirtual |
Called when data is read from a stream. Passes the event on to the internetProtocolHandlers.
| Type | The type of data the stream is handling |
| read_element | The element that was read from the stream |
Reimplemented from MaxOS::common::InputStreamEventHandler< Type >.
Definition at line 273 of file inputStream.h.
References MaxOS::common::InputStreamEventHandler< Type >::on_stream_read().