Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: utzoo!utcsri!mason From: mason@utcsri.UUCP (Dave Mason) Newsgroups: net.unix-wizards Subject: Need help with 4.2 Socket Communications Message-ID: <949@utcsri.UUCP> Date: Sun, 31-Mar-85 17:08:03 EST Article-I.D.: utcsri.949 Posted: Sun Mar 31 17:08:03 1985 Date-Received: Sun, 31-Mar-85 17:26:31 EST Reply-To: mason@utcsri.UUCP (Dave mason) Distribution: net Organization: University of Toronto/Ryerson Polytechnic Institute Lines: 30 I am attempting to use the 4.2 Sockets communication system. I am trying to use DATAGRAM sockets in the Unix domain and am having some problems. The server looks like: s = socket(... bind(s,... ... if (recvfrom(s,buf,buflen,0,&from,&fromlen)<0) ... ... process the data ... if (sendto(s,buf,buflen,0,&from,fromlen)<0) { perror(... abort } the client looks like: sc = socket(... connect(sc,... if (send(s,... if (recv(s,... The message gets sent properly and received by the server, but the sendto fails with the ENOTSOCK claiming that the socket s is no longer a socket. Could someone explain to me (by mail please, I can no longer find the time to read net.unix-wizards) why this would be, and what I can do about it. Thanks ../Dave -- Usenet: {dalcs dciem garfield musocs qucis sask titan trigraph ubc-vision utzoo watmath allegra cornell decvax decwrl ihnp4 uw-beaver} !utcsri!mason Dave Mason, U. Toronto CSRI CSNET: mason@Toronto ARPA: mason%Toronto@CSNet-Relay