Jamoma API  0.6.0.a19
j.net.send.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationMaxExternals
4  *
5  * @brief j.net.send - network communication sender
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  TTFoundationInit();
26 
27  value.clear();
28  value.append(0);
29  options->append(TT("fixedNumChannels"), value);
30 
31  wrapTTClassAsMaxClass(TT("net.send"), "j.net.send", &c, options);
32  CLASS_ATTR_ENUM(c->maxClass, "mode", 0, "tcp udp");
33  return 0;
34 }
#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
void clear()
Clear all values from the vector, leaving with size of 0.
Definition: TTValue.h:131
int TTCLASSWRAPPERMAX_EXPORT main(void)
Set up this class as a Max external the first time an object of this kind is instantiated.
Definition: j.net.send.cpp:19
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34