codeanticode.syphon
Class SyphonServer

java.lang.Object
  extended by codeanticode.syphon.SyphonServer

public class SyphonServer
extends java.lang.Object

Syphon server class. It broadcasts the textures encapsulated in PImage objects.


Constructor Summary
SyphonServer(processing.core.PApplet parent, java.lang.String name)
          Constructor that sets server with specified name.
 
Method Summary
 boolean hasClients()
          Returns true if this server is bound to any client.
 void sendImage(processing.core.PImage source)
          Sends the source image to the bound client.
 void stop()
          Stops the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyphonServer

public SyphonServer(processing.core.PApplet parent,
                    java.lang.String name)
Constructor that sets server with specified name.

Parameters:
parent -
serverName -
Method Detail

hasClients

public boolean hasClients()
Returns true if this server is bound to any client.

Returns:
boolean

sendImage

public void sendImage(processing.core.PImage source)
Sends the source image to the bound client.

Parameters:
source -

stop

public void stop()
Stops the server.



processing library Syphon by Andres Colubri. (c) 2011-2013