Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
ep_afni.h
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006    
00007 #ifndef _AFNI_EPI_HEADER_
00008 #define _AFNI_EPI_HEADER_
00009 
00010 
00011 #include "iochan.h"                     
00012 
00013 #define AFNI_CONTROL_PORT  7954         
00014 #define AFNI_TCP_PORT      7953         
00015 
00016 #define AFNI_OPEN_CONTROL_MODE   1      
00017 #define AFNI_WAIT_CONTROL_MODE   2      
00018 #define AFNI_OPEN_DATA_MODE      3      
00019 #define AFNI_CATCHUP_MODE        4      
00020 #define AFNI_CONTINUE_MODE       5      
00021 
00022 
00023 
00024 #ifdef MAIN
00025   int      AFNI_mode        = 0 ;    
00026   int      AFNI_use_tcp     = 0 ;    
00027   char     AFNI_host[128]   = "\0" ; 
00028   char     AFNI_iochan[128] = "\0" ; 
00029   IOCHAN * AFNI_ioc         = NULL ; 
00030   int      AFNI_atexit_setup= 0    ; 
00031   char     AFNI_buf[1024]          ; 
00032   int      AFNI_verbose     = 0    ; 
00033 
00034   char     AFNI_infocom[256]= "3T_toafni" ;  
00035 #else
00036   extern int      AFNI_mode ;
00037   extern int      AFNI_use_tcp ;
00038   extern char     AFNI_host[] ;
00039   extern char     AFNI_iochan[] ;
00040   extern IOCHAN * AFNI_ioc ;
00041   extern char     AFNI_buf[] ;
00042   extern int      AFNI_atexit_setup ;
00043   extern char     AFNI_infocom[] ;
00044   extern int      AFNI_verbose ;
00045 #endif
00046 
00047 
00048 
00049 
00050 extern void AFNI_start_io(int) ;
00051 extern void AFNI_send_image(int) ;
00052 extern void AFNI_exit(void) ;
00053 
00054 
00055 
00056 #ifdef MAIN
00057 #define AFNI_HELP_STRING                                                       \
00058     "\n    -afni host       - Send reconstructed images to AFNI running"       \
00059     "\n                        CPU 'host'.  If 'host' = '%%' or '.', then"     \
00060     "\n                        the local CPU and shared memory will be used"   \
00061     "\n                        to transfer data; otherwise, TCP/IP sockets"    \
00062     "\n                        will be used.  N.B.: You must start AFNI with"  \
00063     "\n                        the command 'afni -rt' for this to work."       \
00064     "\n    -verbose          - turn on AFNI debugging messages"
00065 #endif
00066 
00067 
00068 
00069 #ifdef HP
00070 # define RSH "remsh"
00071 #else
00072 # define RSH "rsh"
00073 #endif
00074 
00075 
00076 #endif