1 int SSISetDefaultPort(int port);
2 int SSIConnect();
3 int SSINodeID();
4 int SSINNodes();
5 int SSIBrdcst(int length, void *buf);
6 void SSIListHosts(FILE *fp);
7 int SSIShutDown();
8 int SSIMasterExec(char *p);
9 int SSIMasterPutenv(char *p);
10 int SSIMasterExit();
11 int SSIReadFromSocket(int sock, char *buf, int lenbuf);
12 int SSIWriteToSocket(int sock, char *buf, int lenbuf);
13 int SSIFatalError(int line, char *command, char *desc1, char *desc2);
14 int SSIWarning(int line, char *command, char *desc1, char *desc2);
16 #define SSI_MAX_CONN_ATTEMPTS 60
17 #define SSI_MAX_BIND_ATTEMPTS 60
19 #define SSI_RETCODE_MISMATCH -999991
21 #ifndef FALSE
22 #define FALSE 0
23 #endif
25 #ifndef TRUE
26 #define TRUE 1
27 #endif
29 struct NMS_E {
30 int error_number;
31 char *err;
32 };
34 typedef enum {
35 STATUS_OK,
36 E_DB_LISTEN,
37 E_DB_BIND,
38 E_DB_GETSOCKNAME,
39 E_DB_SOCKREAD,
40 E_DB_SOCKREADLENGTH,
41 E_DB_SOCK,
42 E_DB_GETHOSTBYNAME,
43 E_DBCLIENT_SOCKWRITE,
44 E_DBCLIENT_CONNECT,
45 E_DBCLIENT_SETSOCK,
46 E_DBCLIENT_GETSOCK
47 };
49 static struct NMS_E errors[] = {
50 {STATUS_OK, "Status OK"},
51 {E_DB_LISTEN, "listen"},
52 {E_DB_BIND, "bind"},
53 {E_DB_GETSOCKNAME, "getsockname"},
54 {E_DB_SOCKREAD, "socket read"},
55 {E_DB_SOCKREAD, "socket read framelength"},
56 {E_DB_SOCK, "socket"},
57 {E_DB_GETHOSTBYNAME, "gethostbyname"},
58 {E_DBCLIENT_SOCKWRITE, "socket write"},
59 {E_DBCLIENT_CONNECT, "connect"},
60 {E_DBCLIENT_SETSOCK, "setsockopt"},
61 {E_DBCLIENT_GETSOCK, "getsockopt"},
62 {-1, "Unknown"}
63 };

