Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!gergle.UUCP!greg From: greg@gergle.UUCP Newsgroups: comp.windows.news Subject: Re: Client/Server communications Message-ID: <8806270659.AA16550@frame.com> Date: 28 Jun 88 21:47:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 51 >Does anybody have any pointers? Should I abandon the use of the cid utilities? >The NeWS manuals suggest that synchronization between client and server is >a good thing, but either I am not using these utilities correctly, or they >are more trouble than they are worth. I am assuming that you have a simple application. It is hard to give good advice without more details. Blow off the cid utilities. In response to damage have your PaintClient send something back to the C code. (D) print. In most cases sending simple ascii messages from the PostScript to the C code is plenty fast, and much easier to debug. Have your C code block with a psio_getc(PostScript). Check for an ioerror, and then switch off the character you receive. ... case 'D': myps_begindamage(); for(i = 0; i < points ; i++) { myps_sendpoints(points[i].x, points[i].y); } myps_doline(points); myps_enddamage(); break; ...... cdef myps_begindamage() gsave ... set state mywindow /ClientCanvas get setcanvas cdef myps_enddamage() grestore cdef myps_sendpoints(float x, float y) x y % shove 2 points on stack cdef myps_doline(int points) points % loop to draw lines Good Luck. -greg.