This class handles connecting to and receiving frames from a Syphon server.
Definition at line 20 of file VuoSyphonListener.h.
Instance Methods | |
(id) | - init |
Creates a Syphon client that is not yet connected to any server. | |
(void) | - startListeningWithServerDescription:callback: |
Starts listening for frames from the Syphon server (or continues if already connected). | |
(void) | - stopListening |
Disconnects the Syphon client from its server, making it stop receiving frames. | |
(void) | - refreshSyphonClientThreadUnsafe: |
Updates the connected server in response to changes to the desired server or available servers. | |
(void) | - refreshSyphonClient: |
Updates the connected server in response to changes to the desired server or available servers. | |
Protected Attributes | |
void(* | callback )(VuoImage) |
Called when a frame is received. | |
VuoSyphonServerNotifier * | serverNotifier |
Used to track changes to the available Syphon servers. | |
VuoSyphonServerDescription | desiredServer |
A description of the Syphon server to connect to. | |
dispatch_queue_t | refreshQueue |
Synchronizes changes to member variables. | |
Properties | |
SyphonClient * | syphonClient |
The Syphon client that receives frames. | |
- (id) init |
Creates a Syphon client that is not yet connected to any server.
Definition at line 57 of file VuoSyphonListener.m.
- (void) refreshSyphonClient: | (VuoList_VuoSyphonServerDescription) | serverDescriptions |
Updates the connected server in response to changes to the desired server or available servers.
Definition at line 57 of file VuoSyphonListener.m.
- (void) refreshSyphonClientThreadUnsafe: | (VuoList_VuoSyphonServerDescription) | serverDescriptions |
Updates the connected server in response to changes to the desired server or available servers.
This function may only be called on dispatch queue refreshQueue
.
Definition at line 57 of file VuoSyphonListener.m.
- (void) startListeningWithServerDescription: | (VuoSyphonServerDescription) | description | |
callback: | (void(*)(VuoImage)) | receivedFrame | |
Starts listening for frames from the Syphon server (or continues if already connected).
Definition at line 57 of file VuoSyphonListener.m.
- (void) stopListening |
Disconnects the Syphon client from its server, making it stop receiving frames.
Definition at line 57 of file VuoSyphonListener.m.
|
protected |
Called when a frame is received.
Definition at line 22 of file VuoSyphonListener.h.
|
protected |
A description of the Syphon server to connect to.
Definition at line 24 of file VuoSyphonListener.h.
|
protected |
Synchronizes changes to member variables.
Definition at line 25 of file VuoSyphonListener.h.
|
protected |
Used to track changes to the available Syphon servers.
Definition at line 23 of file VuoSyphonListener.h.
|
readwriteatomicretain |
The Syphon client that receives frames.
Definition at line 28 of file VuoSyphonListener.h.