Vuo  1.2.8
Functions
VuoSyphon.m File Reference

Description

VuoSyphon implementation.

Functions

VuoList_VuoSyphonServerDescription VuoSyphon_getAvailableServerDescriptions (void)
 Returns a list of all available Syphon servers. More...
 
VuoList_VuoSyphonServerDescription VuoSyphon_filterServerDescriptions (VuoList_VuoSyphonServerDescription allDescriptions, VuoSyphonServerDescription partialDescription)
 Returns the subset of server descriptions that match the given partial description. More...
 
void VuoSyphonClient_free (void *syphonClient)
 Frees memory. More...
 
VuoSyphonClient VuoSyphonClient_make (void)
 Creates a Syphon client that is not yet connected to any server. More...
 
void VuoSyphonClient_connectToServer (VuoSyphonClient syphonClient, VuoSyphonServerDescription serverDescription, VuoOutputTrigger(receivedFrame, VuoImage))
 Starts listening for frames from the Syphon server (or continues if already connected). More...
 
void VuoSyphonClient_disconnectFromServer (VuoSyphonClient syphonClient)
 Stops the Syphon client from listening for frames from its server. More...
 
void VuoSyphonServer_free (void *server)
 Makes the Syphon server unavailable, and frees memory. More...
 
VuoSyphonServer VuoSyphonServer_make (const char *serverName)
 Creates and starts a Syphon server, making it available for clients to connect to. More...
 
void VuoSyphonServer_publishFrame (VuoSyphonServer server, VuoImage frame)
 Publishes a frame from the Syphon server. More...
 
void VuoSyphonServer_setName (VuoSyphonServer server, const char *serverName)
 Changes the name of the Syphon server. More...
 

Function Documentation

◆ VuoSyphon_filterServerDescriptions()

VuoList_VuoSyphonServerDescription VuoSyphon_filterServerDescriptions ( VuoList_VuoSyphonServerDescription  allDescriptions,
VuoSyphonServerDescription  partialDescription 
)

Returns the subset of server descriptions that match the given partial description.

A server description is considered a match if its UUID, name, and application name contain the UUID, name, and application name in the partial description.

Todo:
Handle UTF8 names (add VuoText function).

◆ VuoSyphon_getAvailableServerDescriptions()

VuoList_VuoSyphonServerDescription VuoSyphon_getAvailableServerDescriptions ( void  )

Returns a list of all available Syphon servers.

◆ VuoSyphonClient_connectToServer()

void VuoSyphonClient_connectToServer ( VuoSyphonClient  syphonClient,
VuoSyphonServerDescription  serverDescription,
VuoOutputTrigger(receivedFrame, VuoImage  
)

Starts listening for frames from the Syphon server (or continues if already connected).

Each time a frame is received, the given trigger function is called.

◆ VuoSyphonClient_disconnectFromServer()

void VuoSyphonClient_disconnectFromServer ( VuoSyphonClient  syphonClient)

Stops the Syphon client from listening for frames from its server.

◆ VuoSyphonClient_free()

void VuoSyphonClient_free ( void *  syphonClient)

Frees memory.

◆ VuoSyphonClient_make()

VuoSyphonClient VuoSyphonClient_make ( void  )

Creates a Syphon client that is not yet connected to any server.

◆ VuoSyphonServer_free()

void VuoSyphonServer_free ( void *  server)

Makes the Syphon server unavailable, and frees memory.

◆ VuoSyphonServer_make()

VuoSyphonServer VuoSyphonServer_make ( const char *  serverName)

Creates and starts a Syphon server, making it available for clients to connect to.

Retain the returned VuoSyphonServer, then later release it to stop serving.

Parameters
serverNameThe server name.
Returns
The Syphon server.

◆ VuoSyphonServer_publishFrame()

void VuoSyphonServer_publishFrame ( VuoSyphonServer  server,
VuoImage  frame 
)

Publishes a frame from the Syphon server.

◆ VuoSyphonServer_setName()

void VuoSyphonServer_setName ( VuoSyphonServer  server,
const char *  serverName 
)

Changes the name of the Syphon server.