1 #ifndef SUMA_NIML_DEFINE_INCLUDED
2 #define SUMA_NIML_DEFINE_INCLUDED
3 
4 #define SUMA_FLAG_WAITING    1   /*!< Waiting for connection flag */
5 #define SUMA_FLAG_CONNECTED  2   /*!< Connected flag */
6 #define SUMA_FLAG_SKIP       4   /*!< Skip flag */
7 
8 #define SUMA_WriteCheckWait 400 /*!< Milliseconds to wait for each
9                                      stream_writecheck call */
10 #define SUMA_WRITECHECKWAITMAX 2000 /*!< Milliseconds to try and establish
11                                          a good WriteCheck */
12 
13 typedef enum { SUMA_AFNI_STREAM_INDEX = 0,
14                      /*!< Index of SUMA<-->AFNI stream , afni listen line 1*/
15                SUMA_AFNI_STREAM_INDEX2 ,
16                      /*!< Index of SUMA<-->AFNI 2nd stream, afni listen line 2 */
17                SUMA_TO_MATLAB_STREAM_INDEX,
18                      /*!< Index of SUMA<-->MATLAB 2nd stream, matlab listen */
19                SUMA_GENERIC_LISTEN_LINE,
20                      /*!< Using socket  SUMA_TCP_LISTEN_PORT0,
21                            generic suma listen line*/
22                SUMA_GEOMCOMP_LINE,
23                      /*!<  Using socket  SUMA_TCP_LISTEN_PORT0 + 1*/
24                SUMA_BRAINWRAP_LINE,
25                      /*!<  Using socket SUMA_TCP_LISTEN_PORT0 + 2*/
26                SUMA_DRIVESUMA_LINE,
27                      /*!<  Using socket SUMA_TCP_LISTEN_PORT0 + 3*/
28                SUMA_GICORR_LINE,
29                      /*!<  Using socket SUMA_TCP_LISTEN_PORT0 + 4*/
30                SUMA_HALLO_SUMA_LINE,
31                      /*!< Communication with demo talking program */
32                SUMA_INSTA_TRACT_LINE,
33                      /*!< Communication with demo talking program */
34                SUMA_MAX_STREAMS
35                      /*!< Maximum number of streams, KEEP AT END */
36             } SUMA_STREAM_INDICES; /* If you add a new stream,
37                   create a new port number for it in afni_ports.c's
38                   init_ports_list function */
39 
40 #endif
41 
42