Newsgroups: comp.parallel.pvm
From: zelek@McRCIM.McGill.EDU (John S. Zelek)
Subject: interference between pvm and socket calls
Keywords: pvm socket connect
Organization: McGill Research Centre for Intelligent Machines
Date: 17 Apr 1995 10:12:42 -0400
Message-ID: <3mtt0q$99q@Lightning.McRCIM.McGill.EDU>


I have a system of pvm processes which talk to each other.
I want to interface to another process which is a 3rd party
software package where the interface to it is through sockets.
It appears that all my pvm message passing gets messed up when
i connect to this external process.  Without the connection my
collection of pvm processes runs fine.

The code for connecting to this third process is as follows:

.....
static struct sockaddr_in server;

....
server.sin_family = AF_INET;
server.sin_port = htons(atoi(robbiesocketname));
hp = gethostbyname(robbiehost);
bcopy(hp->h_addr,&(server.sin_addr.s_addr),hp->h_length);

...
sd = socket(AF_INET<SOCK_STREAM,0);
connect(sd, &server, sizeof(struct sockaddr_in));

........
Does anyone have any ideas why connecting is such a fashion to
another process from a pvm process would cause interference with
the pvm message passing????

John Zelek
-- 
John S. Zelek   Centre for Intelligent Machines (CIM)
                McGill University, Montreal      tel: (514)-483-0780
e-mail: zelek@mcrcim.mcgill.edu
www:    http://www.cim.mcgill.ca/~zelek/Home.html

