Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!rutgers!sri-spam!ames!ucla-cs!kong From: kong@CS.UCLA.EDU Newsgroups: comp.sys.hp Subject: Re: Socket stuff Message-ID: <6743@shemp.UCLA.EDU> Date: Thu, 18-Jun-87 15:09:32 EDT Article-I.D.: shemp.6743 Posted: Thu Jun 18 15:09:32 1987 Date-Received: Sun, 21-Jun-87 16:11:46 EDT References: <6644@shemp.UCLA.EDU> <2032@hplabsc.UUCP> Sender: root@CS.UCLA.EDU Reply-To: kong@CS.UCLA.EDU (Kong Li) Distribution: world Organization: UCLA Computer Science Department Lines: 18 Keywords: socket, IPC In article <2032@hplabsc.UUCP> jin@hplabsc.UUCP (Tai Jin) writes: >Can you be more precise as to what did not work? The problem occurs when two processes on the HP try to communicate with each other by socket (NOT between the HP and the intel System 310 :-), actually the connection between the HP and the intel System 310 is successful). dsoc = socket(AF_INET,SOCK_STREAM,0); ... setsockopt(dsoc, SOL_SOCKET, SO_REUSEADDR,...); ... connect(dsoc, (struct *)&his_addr, sizeof(his_addr)); ... but the connection fails. The errno tells me "Connection refused". But the same code works on the VAX BSD 4.3, any clues ? 'Kong UUCP : ..!{sdcrdcf,ihnp4,cepu,trwspp,ucbvax}!ucla-cs!kong ARPA : kong@cs.ucla.edu