Jamoma API  0.6.0.a19
j.receivemaster.cpp File Reference

Jamoma For Max Shared Library. More...

#include "Jamoma.h"
+ Include dependency graph for j.receivemaster.cpp:

Go to the source code of this file.

Functions

void * receivemaster_new (t_symbol *msg, long argc, t_atom *argv)
 This method is called when a object is instantiated. More...
 
void receivemaster_free (t_jcom_receivemaster *x)
 Method called when the object is freed. More...
 
void receivemaster_dispatch (t_jcom_receivemaster *x, t_symbol *name, t_symbol *msg, long argc, t_atom *argv)
 Send message to an object by remote communiction. More...
 
void receivemaster_add (t_jcom_receivemaster *x, t_symbol *name, t_object *obj)
 Add an object to a linked list of receiving objects associated with a certain name. More...
 
void receivemaster_remove (t_jcom_receivemaster *x, t_symbol *name, t_object *obj)
 Remove an object from the linked list of receiving objects associated with a certain name. More...
 

Detailed Description

Jamoma For Max Shared Library.

Manage j.receive instances.

Authors
Tim Place, Trond Lossius

Definition in file j.receivemaster.cpp.

Function Documentation

void receivemaster_add ( t_jcom_receivemaster *  x,
t_symbol *  name,
t_object *  obj 
)

Add an object to a linked list of receiving objects associated with a certain name.

Parameters
xThis object
nameThe symbol that the receiving object is to be associated with. Example: For a "j.send foo" object the name would be "foo".
objPointer to the receiving object that is to be added.

Definition at line 123 of file j.receivemaster.cpp.

void receivemaster_dispatch ( t_jcom_receivemaster *  x,
t_symbol *  name,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)

Send message to an object by remote communiction.

Parameters
xPointer to this object.
nameThe (OCS) name of the receiving object.
msgMessage passed to the object.
argcThe number of arguments of the message to send.
argvPointer to arguments of the message as atoms.

Definition at line 114 of file j.receivemaster.cpp.

void receivemaster_free ( t_jcom_receivemaster *  x)

Method called when the object is freed.

Parameters
xPointer to the object.

Definition at line 104 of file j.receivemaster.cpp.

void * receivemaster_new ( t_symbol *  msg,
long  argc,
t_atom *  argv 
)

This method is called when a object is instantiated.

Parameters
msgMessage passed to the object when instantiated.
argcThe number of arguments to the object.
argvPointer to arguments as atoms.
Returns
Pointer to the object.

Definition at line 95 of file j.receivemaster.cpp.

void receivemaster_remove ( t_jcom_receivemaster *  x,
t_symbol *  name,
t_object *  obj 
)

Remove an object from the linked list of receiving objects associated with a certain name.

Parameters
xThis Object.
nameThe symbol that the receiving object is currently associated with. Example: For a "j.send foo" object the name would be "foo".
objPointer to the receiving object that is to be removed.

Definition at line 156 of file j.receivemaster.cpp.