#include <ArHybridForwarderVideo.h>
Inheritance diagram for ArHybridForwarderVideo:

Public Member Functions | |
| virtual void | addToCameraCollection (ArCameraCollection &collection) |
| Adds this item to the given camera collection. | |
| ArHybridForwarderVideo (ArServerBase *server, const char *hostname="localhost", int port=7070) | |
| Constructor that just takes a host and port and makes its own client. | |
| ArHybridForwarderVideo (ArServerBase *server, ArClientBase *client) | |
| Constructor that takes a client. | |
| void | clientCycleCallback (void) |
| Our callback that requests more video. | |
| virtual const char * | getCameraName () |
| Returns the name of the camera handled by this item. | |
| bool | isForwardingVideo (void) const |
| Returns if we're forwarding video or not. | |
| void | receiveVideo (ArNetPacket *packet) |
| Receives the video (and sets a timer to wait a bit and get it again). | |
| void | receiveVideoSize (ArNetPacket *packet) |
| Receives the video size (just gets this once). | |
| void | sendVideo (ArServerClient *client, ArNetPacket *packet) |
| Sends the last received video. | |
| void | sendVideoSize (ArServerClient *client, ArNetPacket *packet) |
| Sends the last received video size (just gets this once). | |
| virtual void | setCameraName (const char *cameraName) |
| This method must be called before addToCameraCollection(). | |
| int | setVideoRequestTime (void) const |
| Gets how often after getting video we ask for it again. | |
| void | setVideoRequestTime (int ms) |
| Sets how often after getting video we ask for it again. | |
| virtual | ~ArHybridForwarderVideo () |
| Destructor. | |
Protected Member Functions | |
| void | finishConstructor (void) |
Protected Attributes | |
| std::string | myCameraName |
| ArClientBase * | myClient |
| ArFunctorC< ArHybridForwarderVideo > * | myClientCycleCB |
| bool | myForwardingVideo |
| bool | myIsSendVideoAvailable |
| ArTime | myLastReceivedVideo |
| ArTime | myLastReqSent |
| ArMutex | myMutex |
| ArNetPacket | myReceivedVideo |
| ArNetPacket | myReceivedVideoSize |
| ArFunctor1C< ArHybridForwarderVideo, ArNetPacket * > * | myReceiveVideoCB |
| ArFunctor1C< ArHybridForwarderVideo, ArNetPacket * > * | myReceiveVideoSizeCB |
| bool | myReqSent |
| ArNetPacket | mySendVideoArgument |
| ArFunctor2C< ArHybridForwarderVideo, ArServerClient *, ArNetPacket * > * | mySendVideoCB |
| ArFunctor2C< ArHybridForwarderVideo, ArServerClient *, ArNetPacket * > * | mySendVideoSizeCB |
| ArServerBase * | myServer |
| int | myVideoRequestTime |
| ArHybridForwarderVideo::ArHybridForwarderVideo | ( | ArServerBase * | server, | |
| ArClientBase * | client | |||
| ) |
Constructor that takes a client.
| server | this class will addData the video data to the server | |
| client | IF the client is connected to something this class will get video data from the client and send it out when requested |
| ArHybridForwarderVideo::ArHybridForwarderVideo | ( | ArServerBase * | server, | |
| const char * | hostname = "localhost", |
|||
| int | port = 7070 | |||
| ) |
Constructor that just takes a host and port and makes its own client.
| server | a base server object | |
| hostname | the host to connect a client to | |
| port | the port to connect a client to |
| ArHybridForwarderVideo::~ArHybridForwarderVideo | ( | ) | [virtual] |
Destructor.
| void ArHybridForwarderVideo::addToCameraCollection | ( | ArCameraCollection & | collection | ) | [virtual] |
| void ArHybridForwarderVideo::clientCycleCallback | ( | void | ) |
Our callback that requests more video.
| void ArHybridForwarderVideo::finishConstructor | ( | void | ) | [protected] |
| const char * ArHybridForwarderVideo::getCameraName | ( | ) | [virtual] |
| bool ArHybridForwarderVideo::isForwardingVideo | ( | void | ) | const |
| void ArHybridForwarderVideo::receiveVideo | ( | ArNetPacket * | packet | ) |
Receives the video (and sets a timer to wait a bit and get it again).
| void ArHybridForwarderVideo::receiveVideoSize | ( | ArNetPacket * | packet | ) |
Receives the video size (just gets this once).
| void ArHybridForwarderVideo::sendVideo | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Sends the last received video.
| void ArHybridForwarderVideo::sendVideoSize | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Sends the last received video size (just gets this once).
| void ArHybridForwarderVideo::setCameraName | ( | const char * | cameraName | ) | [virtual] |
This method must be called before addToCameraCollection().
| int ArHybridForwarderVideo::setVideoRequestTime | ( | void | ) | const [inline] |
Gets how often after getting video we ask for it again.
| void ArHybridForwarderVideo::setVideoRequestTime | ( | int | ms | ) | [inline] |
Sets how often after getting video we ask for it again.
std::string ArHybridForwarderVideo::myCameraName [protected] |
ArClientBase* ArHybridForwarderVideo::myClient [protected] |
bool ArHybridForwarderVideo::myForwardingVideo [protected] |
bool ArHybridForwarderVideo::myIsSendVideoAvailable [protected] |
ArTime ArHybridForwarderVideo::myLastReceivedVideo [protected] |
ArTime ArHybridForwarderVideo::myLastReqSent [protected] |
ArMutex ArHybridForwarderVideo::myMutex [protected] |
ArNetPacket ArHybridForwarderVideo::myReceivedVideo [protected] |
ArFunctor1C<ArHybridForwarderVideo, ArNetPacket *>* ArHybridForwarderVideo::myReceiveVideoCB [protected] |
ArFunctor1C<ArHybridForwarderVideo, ArNetPacket *>* ArHybridForwarderVideo::myReceiveVideoSizeCB [protected] |
bool ArHybridForwarderVideo::myReqSent [protected] |
ArFunctor2C<ArHybridForwarderVideo, ArServerClient*, ArNetPacket *>* ArHybridForwarderVideo::mySendVideoCB [protected] |
ArFunctor2C<ArHybridForwarderVideo, ArServerClient*, ArNetPacket *>* ArHybridForwarderVideo::mySendVideoSizeCB [protected] |
ArServerBase* ArHybridForwarderVideo::myServer [protected] |
int ArHybridForwarderVideo::myVideoRequestTime [protected] |
1.4.7