Forums > Dev

connection_client etc. and multiple client classes


September 30, 2009 | 10:28 am

Hi,

I seem to have connection_client etc. almost working in a project I’m working on, despite having to figure out that a few things are different from explained in the docs (that is the old docs – I can’t find anything in the Max 5 SDK, although I’m developing for 4.6 at the moment anyway). Specifically – you don’t seem to get a newserver message if there’s already an existing server, although the connection_client call returns a pointer to the server (not mentioned in the docs).

Anyway, for what I need to do I need multiple objects of different classes to be able to connect as clients to the server. When I try to do this I only seem to get a proper traversal amongst one class of objects, the others seem to be ignored.

Is this correct? I’m assuming that if so I’ll need to make a proxy object for connection that will be hosted in each instance I want to connect, and will deal with communication to and from individual objects.

Is there an easier way, or should I be able to connect multiple classes to a single server.

Cheers,

Alex

September 30, 2009 | 5:56 pm

Sounds like you should use the object registration/notification system (object_register, object_attach, and friends). That’s what we use for this type of application. It’s available in 4.6 (documented in the pattr SDK), and also documented in the Max 5 SDK.

-Joshua

October 2, 2009 | 10:01 am

Thanks Joshua, Sounds good. I’ll check it out.

Alex

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Dev