equal
deleted
inserted
replaced
86 |> Position.default_properties pos; |
86 |> Position.default_properties pos; |
87 in output out_stream (special ch ^ message_props props ^ txt ^ special_end) end; |
87 in output out_stream (special ch ^ message_props props ^ txt ^ special_end) end; |
88 |
88 |
89 fun init_message out_stream = |
89 fun init_message out_stream = |
90 let |
90 let |
91 val pid = (Markup.pidN, string_of_pid (Posix.ProcEnv.getpid ())); |
91 val pid = (Markup.pidN, process_id ()); |
92 val session = (Markup.sessionN, List.last (Session.id ()) handle List.Empty => "unknown"); |
92 val session = (Markup.sessionN, List.last (Session.id ()) handle List.Empty => "unknown"); |
93 val text = message_text Markup.initN [XML.Text (Session.welcome ())]; |
93 val text = message_text Markup.initN [XML.Text (Session.welcome ())]; |
94 in output out_stream (special "A" ^ message_props [pid, session] ^ text ^ special_end) end; |
94 in output out_stream (special "A" ^ message_props [pid, session] ^ text ^ special_end) end; |
95 |
95 |
96 end; |
96 end; |