Footprint/psuedocode for "ddtelnet" type integration to MIS for Linux/OSX

This commit is contained in:
mysticbbs 2012-02-18 02:47:18 -05:00
parent cb9d67bc39
commit a951d7f2e7
1 changed files with 16 additions and 8 deletions

View File

@ -99,12 +99,9 @@ Var
Cmd : String;
Num : LongInt;
NI : TNodeInfoRec;
PassHandle : LongInt;
Begin
PassHandle := Client.FSocketHandle;
Num := ND.GetFreeNode;
Cmd := './mystic -n' + strI2S(Num) + ' -TID' + strI2S(PassHandle) + ' -UID' + Client.FPeerIP;
Cmd := './mystic -n' + strI2S(Num) + ' -IP' + Client.FPeerIP + ' -HOST' + Client.FPeerName;
FillChar(NI, SizeOf(NI), 0);
@ -116,7 +113,18 @@ Begin
ND.SetNodeInfo(Num, NI);
fpSystem(Cmd);
// setup and execute Cmd as defined above, setting up STDIO handles
fpSystem(Cmd); // placeholder for above
// redirection of STDIO psuedocode loop here
// NOTE client class already escapes telnet protocol, no need for that.
//
// while processGoing do begin
// case waitEvent(Input or output)
// input : push input to Client class
// output : push output to client class
// end
NI.Busy := False;
NI.IP := '';