Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

parallel.c File Reference

#include <sys/types.h>
#include <sys/socket.h>
#include <sys/times.h>
#include <time.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netdb.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include "all.h"
#include "param.h"
#include "mpeg.h"
#include "prototypes.h"
#include "parallel.h"
#include "readframe.h"
#include "fsize.h"
#include "combine.h"
#include "frames.h"

Go to the source code of this file.


Defines

#define MAX_IO_SERVERS   10
#define SOMAXCONN   5
#define TERMINATE_PID_SIGNAL   SIGTERM
#define MAXARGS   1024

Functions

void TransmitPortNum _ANSI_ARGS_ ((char *hostName, int portNum, int ioPortNum))
void EndIOServer _ANSI_ARGS_ ((void))
void SafeRead _ANSI_ARGS_ ((int fd, char *buf, int nbyte))
int CreateListeningSocket _ANSI_ARGS_ ((int *portNumber))
int ConnectToSocket _ANSI_ARGS_ ((char *machineName, int portNum, struct hostent **hostEnt))
int safe_fork _ANSI_ARGS_ ((char *command))
void cleanup_fork _ANSI_ARGS_ ((int dummy))
void SetIOConvert (separate) boolean separate

Variables

int32 diffTime
char rsh [256]
hostent * hostEntry = NULL
booleanframeDone
int outputServerSocket
int decodeServerSocket
boolean parallelPerfect = FALSE
int current_max_forked_pid = 0
int yuvHeight
int yuvWidth
time_t timeStart
time_t timeEnd
char statFileName [256]
FILE * statFile
boolean debugMachines
boolean debugSockets
int parallelTestFrames = 10
int parallelTimeChunks = 60
char * IOhostName
int ioPortNumber
int combinePortNumber
int decodePortNumber
boolean niceProcesses = FALSE
boolean forceIalign = FALSE
int machineNumber = -1
boolean remoteIO = FALSE
boolean separateConversion
time_t IOtime = 0
char encoder_name []
int ClientPid [MAX_MACHINES+4]
char * parallelHostName
int portNum
BitBucketbb
int frameEnd
int frameNumber
char * outputFileName
char * paramFile
int seconds
int * frameStart
char * decodeFileName
int newPortNum
char * buf
int nbyte
hostent ** hostEnt

Define Documentation

#define MAX_IO_SERVERS   10
 

Definition at line 111 of file parallel.c.

#define MAXARGS   1024
 

Definition at line 122 of file parallel.c.

#define SOMAXCONN   5
 

Definition at line 113 of file parallel.c.

#define TERMINATE_PID_SIGNAL   SIGTERM
 

Definition at line 120 of file parallel.c.


Function Documentation

void cleanup_fork _ANSI_ARGS_ (int dummy  
 

int safe_fork _ANSI_ARGS_ (char *command)    [static]
 

int ConnectToSocket _ANSI_ARGS_ (char *machineName, int portNum, struct hostent **hostEnt   [static]
 

int CreateListeningSocket _ANSI_ARGS_ (int *portNumber)    [static]
 

void SafeWrite _ANSI_ARGS_ (int fd, char *buf, int nbyte   [static]
 

void EndIOServer _ANSI_ARGS_ (void)    [static]
 

void TransmitPortNum _ANSI_ARGS_ (char *hostName, int portNum, int ioPortNum)    [static]
 

void SetIOConvert separate   
 


Variable Documentation

BitBucket* bb
 

Definition at line 511 of file parallel.c.

char* buf
 

Definition at line 1518 of file parallel.c.

int ClientPid[MAX_MACHINES+4]
 

Definition at line 162 of file parallel.c.

int combinePortNumber
 

Definition at line 153 of file parallel.c.

int current_max_forked_pid = 0 [static]
 

Definition at line 136 of file parallel.c.

boolean debugMachines
 

Definition at line 147 of file parallel.c.

boolean debugSockets
 

Definition at line 148 of file parallel.c.

char* decodeFileName
 

Definition at line 1301 of file parallel.c.

int decodePortNumber
 

Definition at line 154 of file parallel.c.

int decodeServerSocket [static]
 

Definition at line 134 of file parallel.c.

int32 diffTime [static]
 

Definition at line 129 of file parallel.c.

char encoder_name[]
 

Definition at line 161 of file parallel.c.

boolean forceIalign = FALSE
 

Definition at line 156 of file parallel.c.

boolean* frameDone [static]
 

Definition at line 132 of file parallel.c.

int* frameEnd
 

Definition at line 1256 of file parallel.c.

int frameNumber
 

Definition at line 1853 of file parallel.c.

int* frameStart
 

Definition at line 1255 of file parallel.c.

struct hostent** hostEnt
 

Definition at line 1750 of file parallel.c.

struct hostent* hostEntry = NULL [static]
 

Definition at line 131 of file parallel.c.

char* IOhostName
 

Definition at line 151 of file parallel.c.

int ioPortNumber
 

Definition at line 152 of file parallel.c.

time_t IOtime = 0
 

Definition at line 160 of file parallel.c.

int machineNumber = -1
 

Definition at line 1253 of file parallel.c.

int nbyte
 

Definition at line 1519 of file parallel.c.

Referenced by main().

int newPortNum
 

Definition at line 1453 of file parallel.c.

boolean niceProcesses = FALSE
 

Definition at line 155 of file parallel.c.

char* outputFileName
 

include <malloc.h> *

Definition at line 818 of file parallel.c.

int outputServerSocket [static]
 

Definition at line 133 of file parallel.c.

char* parallelHostName
 

Definition at line 1302 of file parallel.c.

boolean parallelPerfect = FALSE [static]
 

Definition at line 135 of file parallel.c.

int parallelTestFrames = 10
 

Definition at line 149 of file parallel.c.

int parallelTimeChunks = 60
 

Definition at line 150 of file parallel.c.

char* paramFile
 

Definition at line 817 of file parallel.c.

int portNum
 

Definition at line 1749 of file parallel.c.

boolean remoteIO = FALSE
 

Definition at line 158 of file parallel.c.

char rsh[256] [static]
 

Definition at line 130 of file parallel.c.

int seconds
 

Definition at line 1254 of file parallel.c.

boolean separateConversion
 

Definition at line 159 of file parallel.c.

FILE* statFile
 

Definition at line 146 of file parallel.c.

char statFileName[256]
 

Definition at line 145 of file parallel.c.

time_t timeEnd
 

Definition at line 144 of file parallel.c.

time_t timeStart
 

Definition at line 144 of file parallel.c.

int yuvHeight
 

Definition at line 143 of file parallel.c.

int yuvWidth
 

Definition at line 143 of file parallel.c.

 

Powered by Plone

This site conforms to the following standards: