Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define reply address schema for response and listen updates #2

Open
eirikblekesaune opened this issue Jun 12, 2013 · 7 comments
Open

Comments

@eirikblekesaune
Copy link

When sending a query to another computer it is not clear to which ip or port the response should be sent.
I suggest defining a schema for this.
I'm currently using this schema (JSON format):

{address: {ip:127.0.0.1, port:57120}}

For querying the monitor output indexes a message might look like this now:
/source/eirikMicrophone:monitorIndex> {address: {ip: 127.0.0.1, port:57120}}

Likewise with listen messages:
//To enable listening
/source/eirikMicrophone:monitorIndex! 1 {address: {ip: 127.0.0.1, port:57120}}
//To disable listening
/source/eirikMicrophone:monitorIndex! 0 {address: {ip: 127.0.0.1, port:57120}}

+Eirik

@bltzr
Copy link
Member

bltzr commented Jun 13, 2013

This is the kind of things Bonjour/zeroconf manages in realtime - but I don't know how things should be done Bonjour-wise… like only the host name ? (e.g. Eirik.local) or ????

BTW, zeroconf is not yet implemented in 0.6, even if we have most tools available from the zeroconf repo that Tim forked from Rémy Muller's sourceforge svn onto github : https://github.com/tap/osctools

Le 12 juin 2013 à 17:17, Eirik Arthur Blekesaune [email protected] a écrit :

When sending a query to another computer it is not clear to which ip or port the response should be sent.
I suggest defining a schema for this.
I'm currently using this schema (JSON format):

{address: {ip:127.0.0.1, port:57120}}

For querying the monitor output indexes a message might look like this now:
/source/eirikMicrophone:monitorIndex> {address: {ip: 127.0.0.1, port:57120}}

Likewise with listen messages:
//To enable listening
/source/eirikMicrophone:monitorIndex! 1 {address: {ip: 127.0.0.1, port:57120}}
//To disable listening
/source/eirikMicrophone:monitorIndex! 0 {address: {ip: 127.0.0.1, port:57120}}

+Eirik


Reply to this email directly or view it on GitHub.

@tap
Copy link
Member

tap commented Jun 13, 2013

Perhaps it would be worthwhile, in the wiki or as a part of our paper, to diagram what activities/services belong in which layer.

Since the OSNIP protocol is envisioned as a layer on top of OSC and Zeroconf, we can make it clear which things are our responsibility and which things are not.

@eirikblekesaune
Copy link
Author

With SC I get the ip address when I receive the message. I would need to have the port I'm supposed to send the result for the query to.
Is this port number defined by the protocol then? Looking at http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
Maybe we should define a specific port number for OSNIP query and replies?

@bltzr
Copy link
Member

bltzr commented Jun 13, 2013

does it have to have a port number at all if we're using zeroconf ?

Pascal Baltazar
[email protected]
http://www.baltazars.org

Le 13 juin 2013 à 15:24, Eirik Arthur Blekesaune [email protected] a écrit :

With SC I get the ip address when I receive the message. I would need to have the port I'm supposed to send the result for the query to.
Is this port number defined by the protocol then? Looking at http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
Maybe we should define a specific port number for OSNIP query and replies?


Reply to this email directly or view it on GitHub.

@bltzr
Copy link
Member

bltzr commented Jun 13, 2013

I mean, of course, the application has a port number, but does it have to be different from the one for the main OSC messaging ?

Pascal Baltazar
[email protected]
http://www.baltazars.org

Le 13 juin 2013 à 15:44, Pascal Baltazar [email protected] a écrit :

does it have to have a port number at all if we're using zeroconf ?

Pascal Baltazar
[email protected]
http://www.baltazars.org

Le 13 juin 2013 à 15:24, Eirik Arthur Blekesaune [email protected] a écrit :

With SC I get the ip address when I receive the message. I would need to have the port I'm supposed to send the result for the query to.
Is this port number defined by the protocol then? Looking at http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
Maybe we should define a specific port number for OSNIP query and replies?


Reply to this email directly or view it on GitHub.

@eirikblekesaune
Copy link
Author

Since the OSNIP protocol is envisioned as a layer on top of OSC and Zeroconf, we can make it clear which things are our responsibility and which things are not.

That would be helpful for me at least..

I'm curious though. What are the pros and cons again for having zeroconf/Bonjour as a base for OSNIP?
I mean, there aren't that many platforms supporting it yet, or?
Or maybe we just shouldn't care about that, rather focus on creating the standard, and then have other platforms implement it?

@bltzr
Copy link
Member

bltzr commented Jun 14, 2013

I'd say that zeroconf is quite popular, plus it already manages all we need, plus RémyMuller has already done a lot of work to merge this with OSC, so why not using it…

Pascal Baltazar
[email protected]
http://www.baltazars.org

Le 14 juin 2013 à 11:32, Eirik Arthur Blekesaune [email protected] a écrit :

Since the OSNIP protocol is envisioned as a layer on top of OSC and Zeroconf, we can make it clear which things are our responsibility and which things are not.

That would be helpful for me at least..

I'm curious though. What are the pros and cons again for having zeroconf/Bonjour as a base for OSNIP?
I mean, there aren't that many platforms supporting it yet, or?
Or maybe we just shouldn't care about that, rather focus on creating the standard, and then have other platforms implement it?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants