1 /*----------------------------------------------------------------------------
2 ChucK Concurrent, On-the-fly Audio Programming Language
3 Compiler and Virtual Machine
5 Copyright (c) 2004 Ge Wang and Perry R. Cook. All rights reserved.
6 http://chuck.cs.princeton.edu/
7 http://soundlab.cs.princeton.edu/
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 -----------------------------------------------------------------------------*/
25 //-----------------------------------------------------------------------------
29 // author: Ge Wang (gewang@cs.princeton.edu)
30 // Perry R. Cook (prc@cs.princeton.edu)
32 //-----------------------------------------------------------------------------
33 #ifndef __ULIB_NET_H__
34 #define __ULIB_NET_H__
39 DLL_QUERY
net_query( Chuck_DL_Query
* QUERY
);
41 t_CKBOOL
net_shutdown();
46 UGEN_CTOR
netout_ctor( t_CKTIME now
);
47 UGEN_DTOR
netout_dtor( t_CKTIME now
, void * data
);
48 UGEN_TICK
netout_tick( t_CKTIME now
, void * data
, SAMPLE in
, SAMPLE
* out
);
49 UGEN_CTRL
netout_ctrl_addr( t_CKTIME now
, void * data
, void * value
);
50 UGEN_CGET
netout_cget_addr( t_CKTIME now
, void * data
, void * out
);
51 UGEN_CTRL
netout_ctrl_port( t_CKTIME now
, void * data
, void * value
);
52 UGEN_CGET
netout_cget_port( t_CKTIME now
, void * data
, void * out
);
53 UGEN_CTRL
netout_ctrl_size( t_CKTIME now
, void * data
, void * value
);
54 UGEN_CGET
netout_cget_size( t_CKTIME now
, void * data
, void * out
);
55 UGEN_CTRL
netout_ctrl_name( t_CKTIME now
, void * data
, void * value
);
56 UGEN_CGET
netout_cget_name( t_CKTIME now
, void * data
, void * out
);
57 UGEN_CTRL
netout_ctrl_seqnum( t_CKTIME now
, void * data
, void * value
);
58 UGEN_CGET
netout_cget_seqnum( t_CKTIME now
, void * data
, void * out
);
59 UGEN_CTRL
netout_ctrl_useseq( t_CKTIME now
, void * data
, void * value
);
60 UGEN_CGET
netout_cget_useseq( t_CKTIME now
, void * data
, void * out
);
63 UGEN_CTOR
netin_ctor( t_CKTIME now
);
64 UGEN_DTOR
netin_dtor( t_CKTIME now
, void * data
);
65 UGEN_TICK
netin_tick( t_CKTIME now
, void * data
, SAMPLE in
, SAMPLE
* out
);
66 UGEN_CTRL
netin_ctrl_port( t_CKTIME now
, void * data
, void * value
);
67 UGEN_CGET
netin_cget_port( t_CKTIME now
, void * data
, void * out
);
68 UGEN_CTRL
netin_ctrl_name( t_CKTIME now
, void * data
, void * value
);
69 UGEN_CGET
netin_cget_name( t_CKTIME now
, void * data
, void * out
);
70 UGEN_CTRL
netin_ctrl_seqnum( t_CKTIME now
, void * data
, void * value
);
71 UGEN_CGET
netin_cget_seqnum( t_CKTIME now
, void * data
, void * out
);
72 UGEN_CTRL
netin_ctrl_useseq( t_CKTIME now
, void * data
, void * value
);
73 UGEN_CGET
netin_cget_useseq( t_CKTIME now
, void * data
, void * out
);