At 10:46 AM 2/8/2001 -0600, Forrest Cahoon wrote:
>I'm sorry this message is so long, but we are having some real trouble
>using sockets from perl here, and I desperately want to get to the
>bottom of it.  It appears that perl programs using sockets on our
>OpenVMS system immediately echo back any messages they receive.

You can't use C's stdio calls on sockets on VMS. (Which means no print or 
<>) If you need to read or write to them, use sysread and syswrite.

Yes, I've grumbled at the Compaq C RTL folks about this, and it's probably 
time to grumble again. Being able to do this, though, isn't set down in any 
standard, or it wasn't the last time I grumbled, so it wasn't a high 
priority. (You're theoretically supposed to use only the Berkeley socket 
routines on sockets, not C's normal I/O functions, but every Unix I know 
lets you do it)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to