version 1.8, 2000/12/03 08:19:55 |
version 1.10, 2000/12/05 12:03:43 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/plugin/oxmisc2.c,v 1.7 2000/12/03 07:29:39 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/plugin/oxmisc2.c,v 1.9 2000/12/05 11:20:26 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include "ox_kan.h" |
#include "ox_kan.h" |
#include "oxmisc2.h" /* This file requires sm1 object description. */ |
#include "oxmisc2.h" /* This file requires sm1 object description. */ |
Line 92 int oxReq(oxclientp client,int func,struct object ob) |
|
Line 92 int oxReq(oxclientp client,int func,struct object ob) |
|
switch(func) { |
switch(func) { |
case SM_control_reset_connection: |
case SM_control_reset_connection: |
oxReqControlResetConnection(client->controlfd); |
oxReqControlResetConnection(client->controlfd); |
client->cstate = 1; |
client->cstate = 0; |
client->dstate = DSTATE_FIRST_SYNC; |
client->dstate = DSTATE_FIRST_SYNC; |
break; |
break; |
case SM_control_kill: |
case SM_control_kill: |
Line 915 struct object KoxGetPort(struct object host) |
|
Line 915 struct object KoxGetPort(struct object host) |
|
putoa(rob,1,KpoInteger(portStream)); |
putoa(rob,1,KpoInteger(portStream)); |
putoa(rob,2,KpoInteger(fdControl)); |
putoa(rob,2,KpoInteger(fdControl)); |
putoa(rob,3,KpoInteger(portControl)); |
putoa(rob,3,KpoInteger(portControl)); |
|
return(rob); |
|
} |
|
struct object KoxGetPort1(struct object host) |
|
{ |
|
struct object rob; |
|
int fdStream; |
|
int portStream; |
|
extern int OpenedSocket; |
|
char *sname; |
|
rob = NullObject; |
|
if (host.tag != Sdollar) { |
|
errorOxmisc2("KoxGetPort1: argument is not a string."); |
|
return(rob); |
|
} |
|
sname = KopString(host); |
|
fdStream = socketOpen(sname,0); |
|
portStream = OpenedSocket; |
|
rob = newObjectArray(2); |
|
putoa(rob,0,KpoInteger(fdStream)); |
|
putoa(rob,1,KpoInteger(portStream)); |
return(rob); |
return(rob); |
} |
} |
|
|