Jamoma API  0.6.0.a19
j.net.receive.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationMaxExternals
4  *
5  * @brief j.net.receive - network communication receiver
6  *
7  * @details
8  *
9  * @authors Timothy Place, Trond Lossius
10  *
11  * @copyright Copyright © 2010 Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #include "TTClassWrapperMax.h"
18 
19 int TTCLASSWRAPPERMAX_EXPORT main(void)
20 {
21  WrappedClassOptionsPtr options = new WrappedClassOptions;
22  TTValue value;
23  WrappedClassPtr c = NULL;
24 
25 
26  TTFoundationInit();
27 
28  value.clear();
29  value.append(0);
30  options->append(TT("fixedNumChannels"), value);
31 
32  value.clear();
33  value.append(0);
34  value.append(TT("receivedMessage"));
35  options->append(TT("controlOutletFromNotification"), value);
36 
37  wrapTTClassAsMaxClass(TT("net.receive"), "j.net.receive", &c, options);
38  CLASS_ATTR_ENUM(c->maxClass, "mode", 0, "tcp udp");
39  return 0;
40 }
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
Definition: TTSymbol.h:155
void append(const T &anElementValueToAppend)
Insert a single TTElement at the end.
Definition: TTValue.h:243
int TTCLASSWRAPPERMAX_EXPORT main(void)
Set up this class as a Max external the first time an object of this kind is instantiated.
void clear()
Clear all values from the vector, leaving with size of 0.
Definition: TTValue.h:131
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34