ROBERT@VM1.MCGILL.CA (Robert Craig) (02/10/90)
I'm trying to write an application using sockets on VM and on a Sun running SunOS 3.5. First of all, should one use CMS_SOCK or CMSOCKET? On VM I do socket, bind, listen, accept and read. On the Sun I do socket, setsockopt, connect, fdopen and fwrite. The application works fine for files which are greater than a few hundred bytes in size, sometimes for files which are smaller. I assume what is happening is either the Sun docs lie and PUSH is not being set, or the IBM docs lie and PUSH doesn't always deliver data to the client. The error returned by VM TCP/IP is "foreign host unexpectedly closed the connection" or something like that. I have a sleep(10) in the Sun code after the write. Any ideas? Robert Craig domain: robert@vm1.mcgill.ca Network Analyst bitnet: robert@mcgill1 McGill University Computing Centre FAX: (514) 398-6876 805 Sherbrooke St. W. CORISQ: (514) 398-RISQ Montreal, Quebec H3A 2K6 Pager: (514) 749-3600 Tel: (514) 398-3710 (office)