|
ofxDepthStream
|
Network stream transmitter class. More...
#include <Transmitter.h>
Public Member Functions | |
| Transmitter (int port) | |
| The constructor immediately starts the network server thread. More... | |
| ~Transmitter () | |
| The destructor stops the network-server if it's still running. More... | |
| bool | transmit (const void *data, size_t size) |
| Transmits a the given frame-data if the network-server has a connected client. More... | |
| void | stop (bool wait=true) |
| Stops the network server. More... | |
Protected Member Functions | |
| void | error (const char *msg) |
| void | unbind () |
| bool | bind () |
| void | serverThread () |
| bool | transmitRaw (const void *data, size_t size) |
Network stream transmitter class.
The Transmitter class runs a network server on separate thread, which receives incoming connection requests over TCP and starts sending a (compressed) stream of Frames when a connection is established.
| Transmitter::Transmitter | ( | int | port | ) |
The constructor immediately starts the network server thread.
| Transmitter::~Transmitter | ( | ) |
The destructor stops the network-server if it's still running.
|
protected |
Referenced by serverThread().
|
inlineprotected |
Referenced by bind(), and serverThread().
|
protected |
Referenced by Transmitter().
| void Transmitter::stop | ( | bool | wait = true | ) |
Stops the network server.
Referenced by ~Transmitter().
| bool Transmitter::transmit | ( | const void * | data, |
| size_t | size | ||
| ) |
Transmits a the given frame-data if the network-server has a connected client.
|
protected |
Referenced by transmit().
|
protected |
Referenced by stop().
1.8.14