Annotation of OpenXM/src/kan96xx/plugin/oxx.hh, Revision 1.7
1.7 ! takayama 1: /*$OpenXM: OpenXM/src/kan96xx/plugin/oxx.hh,v 1.6 2000/12/05 12:03:44 takayama Exp $*/
1.1 maekawa 2: else if (strcmp(key,"oxCreateClient") == 0) {
3: if (size != 4) errorKan1("%s\n","[(oxCreateClient) ip dataport controlport] extension client.");
1.3 takayama 4: if (SecureMode) errorKan1("%s\n","Security violation for oxCreateClient.");
1.1 maekawa 5: rob = KoxCreateClient(getoa(obj,1),getoa(obj,2),getoa(obj,3));
6: }
7: else if (strcmp(key,"oxCreateClientFile") == 0) {
8: if (size != 3) errorKan1("%s\n","[(oxCreateClientFile) fname mode] extension client.");
1.3 takayama 9: if (SecureMode) errorKan1("%s\n","Security violation for oxCreateClientFile.");
1.1 maekawa 10: rob = KoxCreateClient(getoa(obj,1),getoa(obj,2),getoa(obj,2));
11: /* dummy */
12: }
13: else if (strcmp(key,"oxReq") == 0) {
14: if (size == 4) {
15: lockCtrlCForOx();
16: rob = KoxReq(getoa(obj,1),getoa(obj,2),getoa(obj,3));
17: unlockCtrlCForOx();
18: }else if (size == 3) {
19: lockCtrlCForOx();
20: rob = KoxReq(getoa(obj,1),getoa(obj,2),rob); /* rob is a dummy. */
21: unlockCtrlCForOx();
22: }else {
23: errorKan1("%s\n","[(oxReq) client func arg] extension result.");
24: }
25: }
26: else if (strcmp(key,"oxGet") == 0) {
27: if (size != 2) errorKan1("%s\n","[(oxGet) client] extension obj.");
28: lockCtrlCForOx();
29: obj1 = getoa(obj,1);
30: rob = KoxGet(obj1); /* Note that lock and unlock are also temporary done in
31: oxGetHeader(). */
32: unlockCtrlCForOx();
33: }
34: else if (strcmp(key,"oxGetFromControl") == 0) {
35: if (size != 2) errorKan1("%s\n","[(oxGetFromControl) client] extension obj.");
36: obj1 = getoa(obj,1);
37: rob = KoxGetFromControl(obj1);
38: }
39: else if (strcmp(key,"oxMultiSelect") == 0) {
40: if (size != 3) errorKan1("%s\n","[(oxMultiSelect) client t] extension obj.");
41: rob = KoxMultiSelect(getoa(obj,1),getoa(obj,2));
42: }
43: else if (strcmp(key,"oxWatch") == 0) {
1.2 takayama 44: if (size > 2) errorKan1("%s\n","[(oxWatch) client] extension obj");
45: if (size == 2) {
46: rob = KoxWatch(getoa(obj,1),rob); /* rob is dummy for now. */
47: }else {
48: rob = KoxWatch(KpoInteger(1),rob);
49: }
1.1 maekawa 50: }
51: else if (strcmp(key,"oxCloseClient") == 0) {
52: if (size != 2) errorKan1("%s\n","[(oxCloseClient) client] extension obj");
53: rob = KoxCloseClient(getoa(obj,1));
54: }
55: else if (strcmp(key,"oxSerial") == 0) {
56: if (size != 1) errorKan1("%s\n","[(oxSerial)] extension obj");
57: rob = KpoInteger(SerialOX);
58: }
59: else if (strcmp(key,"oxGenPortFile") == 0) {
60: if (size != 1) errorKan1("%s\n","[(oxGenPortFile)] extension obj");
61: rob = KoxGenPortFile();
62: }
63: else if (strcmp(key,"oxRemovePortFile") == 0) {
64: if (size != 1) errorKan1("%s\n","[(oxRemovePortFile)] extension obj");
65: KoxRemovePortFile();
66: }
67: else if (strcmp(key,"oxGenPass") == 0) {
68: if (size != 1) errorKan1("%s\n","[(oxGenPass)] extension obj");
69: rob = KoxGenPass();
70: }
71: else if (strcmp(key,"oxGetPort") == 0) {
72: if (size != 2) errorKan1("%s\n","[(oxGetPort) host] extension obj");
1.6 takayama 73: if (SecureMode) errorKan1("%s\n","Security violation for oxGetPort.");
74: rob = KoxGetPort(getoa(obj,1));
75: }
76: else if (strcmp(key,"oxGetPort1") == 0) {
77: if (size != 2) errorKan1("%s\n","[(oxGetPort1) host] extension obj");
1.3 takayama 78: if (SecureMode) errorKan1("%s\n","Security violation for oxGetPort.");
1.7 ! takayama 79: rob = KoxGetPort1(getoa(obj,1));
1.1 maekawa 80: }
81: else if (strcmp(key,"oxCreateClient2") == 0) {
82: if (size != 4) errorKan1("%s\n","[(oxCreateClient2) peer ipmask pass] extension client.");
1.3 takayama 83: if (SecureMode) errorKan1("%s\n","Security violation for oxCreateClient2.");
1.1 maekawa 84: rob = KoxCreateClient2(getoa(obj,1),getoa(obj,2),getoa(obj,3));
85: }
86: else if (strcmp(key,"oxPrintMessage") == 0) {
87: if (size == 1) {
88: rob = KpoInteger(OXprintMessage);
89: }else{
90: if (size != 2) errorKan1("%s\n","[(oxPrintMessge) level] extension obj");
91: obj1 = getoa(obj,1);
92: if (obj1.tag != Sinteger)
93: errorKan1("%s\n","[(oxPrintMessge) level] extension obj, integer level");
94: OXprintMessage = KopInteger(obj1);
95: rob = KpoInteger(OXprintMessage);
96: }
97: }
98: else if (strcmp(key,"oxPrintMessage") == 0) {
99: if (size == 1) {
100: rob = KpoInteger(OXprintMessage);
101: }else{
102: if (size != 2) errorKan1("%s\n","[(oxPrintMessge) level] extension obj");
103: obj1 = getoa(obj,1);
104: if (obj1.tag != Sinteger)
105: errorKan1("%s\n","[(oxPrintMessge) level] extension obj, integer level");
106: OXprintMessage = KopInteger(obj1);
107: rob = KpoInteger(OXprintMessage);
1.4 takayama 108: }
109: }
110: else if (strcmp(key,"oxPushCMD") == 0) {
111: if (size == 3) {
112: lockCtrlCForOx();
113: rob = KoxPushCMD(getoa(obj,1),getoa(obj,2));
114: unlockCtrlCForOx();
115: }else {
116: errorKan1("%s\n","[(oxPushCMD) client SM_id] extension result.");
117: }
118: }
119: else if (strcmp(key,"oxPushCMO") == 0) {
120: if (size == 3) {
121: lockCtrlCForOx();
122: rob = KoxPushCMO(getoa(obj,1),getoa(obj,2));
123: unlockCtrlCForOx();
124: }else {
125: errorKan1("%s\n","[(oxPushCMO) client obj] extension result.");
1.1 maekawa 126: }
1.5 takayama 127: }
128: else if (strcmp(key,"oxCreateControl_RFC_101") == 0) {
129: if (size != 4) errorKan1("%s\n","[(oxCreateControl_RFC_101) peer ipmask pass] extension client.");
130: if (SecureMode) errorKan1("%s\n","Security violation for oxCreateControl_RFC_101.");
131: rob = KoxCreateControl_RFC_101(getoa(obj,1),getoa(obj,2),getoa(obj,3));
1.7 ! takayama 132: }
! 133: else if (strcmp(key,"oxCreateEngine_RFC_101") == 0) {
! 134: if (size != 5) errorKan1("%s\n","[(oxCreateEngine_RFC_101) peer ipmask pass engineID] extension client.");
! 135: if (SecureMode) errorKan1("%s\n","Security violation for oxCreateEngine_RFC_101.");
! 136: rob = KoxCreateEngine_RFC_101(getoa(obj,1),getoa(obj,2),getoa(obj,3),getoa(obj,4));
1.1 maekawa 137: }
138:
139:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>