google-code-export / syphon-implementations

Automatically exported from code.google.com/p/syphon-implementations
1 stars 1 forks source link

Processing client only matches app name, not server name #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
SyphonClient takes a serverName argument, but this actually matches app name. 
It should take serverName and appName arguments.

http://v002.info/forums/topic/processing-problem-syphonservers-with-appname/

Original issue reported on code.google.com by bangnoise@gmail.com on 4 Dec 2012 at 1:39

GoogleCodeExporter commented 9 years ago
Working on it.

if only one string is provided to the constructor of the client class, should 
it be interpreted as an app name or as a server name?

Original comment by andres.c...@gmail.com on 5 Dec 2012 at 5:29

GoogleCodeExporter commented 9 years ago
r189 looks good except SyphonClient shouldn't throw an exception if no names 
are provided - the underlying SyphonNameboundClient will match any available 
client if neither are provided. Indeed the example project could use it so it 
will match any client - perhaps with a commented-out line with a match for a 
specific client.

Original comment by bangnoise@gmail.com on 5 Dec 2012 at 10:38

GoogleCodeExporter commented 9 years ago
Ah I now see your commented-out lines in r190 - that is great but also permit 
SyphonClient(this, "") and SyphonClient(this, "", "").

Original comment by bangnoise@gmail.com on 5 Dec 2012 at 10:43

GoogleCodeExporter commented 9 years ago
Has anyone looked at this code in awhile? I tried specifying both application 
and server names as in r190 but it says that the constructor is undefined. 
Ideally, I am trying to receive data from a Max Patch with 3 different servers.
  client = new SyphonClient(this, "Max", "Grab1");
  client = new SyphonClient(this, "Max", "Grab2");
  client = new SyphonClient(this, "Max", "Grab3");

Original comment by ccla...@gmail.com on 3 Apr 2013 at 9:00

GoogleCodeExporter commented 9 years ago
Hello, I haven't had time to work on it lately, but in the last round of 
changes the constructor of SyphonClient allows you to specify different servers 
within the same app. Take a look at the comments in the ReceiveFrames example:

"A Syphon server can be specified by the name of the application that it 
contains it, its name, or both:

1) Only application name.
client = new SyphonClient(this, "SendFrames");

2) Both application and server names
client = new SyphonClient(this, "SendFrames", "Processing Syphon");

3) Only server name
client = new SyphonClient(this, "", "Processing Syphon");

An application can have several servers:
clientRaw = new SyphonClient(this, "Quartz Composer", "Raw Image");
clientScene = new SyphonClient(this, "Quartz Composer", "Scene");
"

These different constructors should be available in the last release (Public 
Beta 2 r7)

Original comment by andres.c...@gmail.com on 3 Apr 2013 at 1:10

GoogleCodeExporter commented 9 years ago
Moved to GitHub: https://github.com/Syphon/Processing/issues/2

Original comment by andres.c...@gmail.com on 30 Aug 2013 at 7:29