Connect:
PROC
[
serverName: ROPE,
fromClient, toClient: IO.STREAM,
noteDisconnect: PROC [clientData: REF ANY] ← NIL,
clientData: REF ANY ← NIL,
login: BOOL ← FALSE]
RETURNS [c: Conversation] =
{
c ← NEW [ConversationRep ← [protocol: echo, noteDisconnect: noteDisconnect, clientData: clientData, data: NIL]];
TRUSTED {Process.Detach[FORK IOClasses.Copy[from: fromClient, to: toClient]]};
};
}.