=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/oxmisc2.c,v retrieving revision 1.8 retrieving revision 1.10 diff -u -p -r1.8 -r1.10 --- OpenXM/src/kan96xx/plugin/oxmisc2.c 2000/12/03 08:19:55 1.8 +++ OpenXM/src/kan96xx/plugin/oxmisc2.c 2000/12/05 12:03:43 1.10 @@ -1,4 +1,4 @@ -/* $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 #include "ox_kan.h" #include "oxmisc2.h" /* This file requires sm1 object description. */ @@ -92,7 +92,7 @@ int oxReq(oxclientp client,int func,struct object ob) switch(func) { case SM_control_reset_connection: oxReqControlResetConnection(client->controlfd); - client->cstate = 1; + client->cstate = 0; client->dstate = DSTATE_FIRST_SYNC; break; case SM_control_kill: @@ -915,6 +915,26 @@ struct object KoxGetPort(struct object host) putoa(rob,1,KpoInteger(portStream)); putoa(rob,2,KpoInteger(fdControl)); 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); }