The DOS session should have been able to connect to a single or many named pipe(s) that were created and maintained by the OS/2 session. Afterward, data was passed to the DOS session(s) in the form of single characters that altered the color of the DOS screen.
After you have successfully completed the exercise, please note that this is only one way of communicating between DOS sessions and OS/2 sessions.